diff --git a/pkg/front_end/test/spell_checking_list_tests.txt b/pkg/front_end/test/spell_checking_list_tests.txt index 393b913f29b..9c10ad6201c 100644 --- a/pkg/front_end/test/spell_checking_list_tests.txt +++ b/pkg/front_end/test/spell_checking_list_tests.txt @@ -291,6 +291,7 @@ expansive explainer extern f\u +fa fac faking falling @@ -349,9 +350,12 @@ greeting gtgt gulp gunk +ha hackish hardcoding hardly +hb +hc hest heuristics hi @@ -411,6 +415,8 @@ ish it'll italic iter +ja +jc jlcontreras joo jumped diff --git a/pkg/front_end/testcases/dart2js/inline_class/external.dart.strong.expect b/pkg/front_end/testcases/dart2js/inline_class/external.dart.strong.expect index 476514e5872..4bd0577e7c7 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/external.dart.strong.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/external.dart.strong.expect @@ -37,41 +37,41 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); - b2 = self::B|genericMethod(b2, b2); + b2 = self::B|genericMethod(b2, b2); b1 = self::B|get#getter(b2); self::B|set#setter(b1, b2); a = self::B|staticField; self::B|staticField = a; a = self::B|staticMethod(); - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); b1 = self::B|staticGetter; self::B|staticSetter = b2; } diff --git a/pkg/front_end/testcases/dart2js/inline_class/external.dart.strong.transformed.expect b/pkg/front_end/testcases/dart2js/inline_class/external.dart.strong.transformed.expect index cd0ee857940..c6b9fda9588 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/external.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/external.dart.strong.transformed.expect @@ -38,43 +38,43 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B - return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B - return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), i); +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ + return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ + return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => js_2::_callMethodUnchecked0(#this, "method"); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => js_2::callMethod(#this, "genericMethod", [t]); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => js_2::callMethod(#this, "genericMethod", [t]); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); - self::B b2 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), 0); + self::B /* = self::A */ b1 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); + self::B /* = self::A */ b2 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), 0); a = js_2::getProperty(b1, "field"); js_2::setProperty(b1, "field", a); a = js_2::_callMethodUnchecked0(b1, "method"); - b2 = js_2::callMethod(b2, "genericMethod", [b2]); - b1 = js_2::getProperty(b2, "getter"); - js_2::setProperty(b1, "setter", b2); + b2 = js_2::callMethod(b2, "genericMethod", [b2]); + b1 = js_2::getProperty(b2, "getter"); + js_2::setProperty(b1, "setter", b2); a = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticField"); js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticField", a); a = js_2::_callMethodUnchecked0(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticMethod"); - b2 = js_2::callMethod(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGenericMethod", [b2]); - b1 = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGetter"); - js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticSetter", b2); + b2 = js_2::callMethod(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGenericMethod", [b2]); + b1 = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGetter"); + js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticSetter", b2); } constants { diff --git a/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.expect b/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.expect index 476514e5872..4bd0577e7c7 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.expect @@ -37,41 +37,41 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); - b2 = self::B|genericMethod(b2, b2); + b2 = self::B|genericMethod(b2, b2); b1 = self::B|get#getter(b2); self::B|set#setter(b1, b2); a = self::B|staticField; self::B|staticField = a; a = self::B|staticMethod(); - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); b1 = self::B|staticGetter; self::B|staticSetter = b2; } diff --git a/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.modular.expect b/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.modular.expect index 476514e5872..4bd0577e7c7 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.modular.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.modular.expect @@ -37,41 +37,41 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); - b2 = self::B|genericMethod(b2, b2); + b2 = self::B|genericMethod(b2, b2); b1 = self::B|get#getter(b2); self::B|set#setter(b1, b2); a = self::B|staticField; self::B|staticField = a; a = self::B|staticMethod(); - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); b1 = self::B|staticGetter; self::B|staticSetter = b2; } diff --git a/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.outline.expect b/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.outline.expect index 71f7236fe5e..7015a9f5b75 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.outline.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.outline.expect @@ -36,28 +36,28 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void ; diff --git a/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.transformed.expect index cd0ee857940..c6b9fda9588 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/external.dart.weak.transformed.expect @@ -38,43 +38,43 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B - return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B - return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), i); +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ + return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ + return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => js_2::_callMethodUnchecked0(#this, "method"); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => js_2::callMethod(#this, "genericMethod", [t]); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => js_2::callMethod(#this, "genericMethod", [t]); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); - self::B b2 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), 0); + self::B /* = self::A */ b1 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); + self::B /* = self::A */ b2 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), 0); a = js_2::getProperty(b1, "field"); js_2::setProperty(b1, "field", a); a = js_2::_callMethodUnchecked0(b1, "method"); - b2 = js_2::callMethod(b2, "genericMethod", [b2]); - b1 = js_2::getProperty(b2, "getter"); - js_2::setProperty(b1, "setter", b2); + b2 = js_2::callMethod(b2, "genericMethod", [b2]); + b1 = js_2::getProperty(b2, "getter"); + js_2::setProperty(b1, "setter", b2); a = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticField"); js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticField", a); a = js_2::_callMethodUnchecked0(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticMethod"); - b2 = js_2::callMethod(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGenericMethod", [b2]); - b1 = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGetter"); - js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticSetter", b2); + b2 = js_2::callMethod(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGenericMethod", [b2]); + b1 = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGetter"); + js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticSetter", b2); } constants { diff --git a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.strong.expect b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.strong.expect index 5b15c989ea7..04ecd65685d 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.strong.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.strong.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.strong.transformed.expect b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.strong.transformed.expect index 5b15c989ea7..04ecd65685d 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.strong.transformed.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.expect b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.expect index 8bb96fd5ab2..415dbdd774d 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.modular.expect b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.modular.expect index 8bb96fd5ab2..415dbdd774d 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.modular.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.modular.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.outline.expect b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.outline.expect index a12caa52c2e..74a17bc5f71 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.outline.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.outline.expect @@ -18,25 +18,25 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I +static inline-class-member method I|() → self::I /* = core::int */ ; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ ; -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ ; -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ ; -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ ; -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.transformed.expect index 8bb96fd5ab2..415dbdd774d 100644 --- a/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/dart2js/inline_class/issue51285.dart.weak.transformed.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.strong.expect b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.strong.expect index 476514e5872..4bd0577e7c7 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.strong.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.strong.expect @@ -37,41 +37,41 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); - b2 = self::B|genericMethod(b2, b2); + b2 = self::B|genericMethod(b2, b2); b1 = self::B|get#getter(b2); self::B|set#setter(b1, b2); a = self::B|staticField; self::B|staticField = a; a = self::B|staticMethod(); - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); b1 = self::B|staticGetter; self::B|staticSetter = b2; } diff --git a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.strong.transformed.expect b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.strong.transformed.expect index cd0ee857940..c6b9fda9588 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.strong.transformed.expect @@ -38,43 +38,43 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B - return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B - return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), i); +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ + return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ + return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => js_2::_callMethodUnchecked0(#this, "method"); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => js_2::callMethod(#this, "genericMethod", [t]); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => js_2::callMethod(#this, "genericMethod", [t]); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); - self::B b2 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), 0); + self::B /* = self::A */ b1 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); + self::B /* = self::A */ b2 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), 0); a = js_2::getProperty(b1, "field"); js_2::setProperty(b1, "field", a); a = js_2::_callMethodUnchecked0(b1, "method"); - b2 = js_2::callMethod(b2, "genericMethod", [b2]); - b1 = js_2::getProperty(b2, "getter"); - js_2::setProperty(b1, "setter", b2); + b2 = js_2::callMethod(b2, "genericMethod", [b2]); + b1 = js_2::getProperty(b2, "getter"); + js_2::setProperty(b1, "setter", b2); a = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticField"); js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticField", a); a = js_2::_callMethodUnchecked0(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticMethod"); - b2 = js_2::callMethod(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGenericMethod", [b2]); - b1 = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGetter"); - js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticSetter", b2); + b2 = js_2::callMethod(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGenericMethod", [b2]); + b1 = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGetter"); + js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticSetter", b2); } constants { diff --git a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.expect b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.expect index 476514e5872..4bd0577e7c7 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.expect @@ -37,41 +37,41 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); - b2 = self::B|genericMethod(b2, b2); + b2 = self::B|genericMethod(b2, b2); b1 = self::B|get#getter(b2); self::B|set#setter(b1, b2); a = self::B|staticField; self::B|staticField = a; a = self::B|staticMethod(); - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); b1 = self::B|staticGetter; self::B|staticSetter = b2; } diff --git a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.modular.expect b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.modular.expect index 476514e5872..4bd0577e7c7 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.modular.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.modular.expect @@ -37,41 +37,41 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); - b2 = self::B|genericMethod(b2, b2); + b2 = self::B|genericMethod(b2, b2); b1 = self::B|get#getter(b2); self::B|set#setter(b1, b2); a = self::B|staticField; self::B|staticField = a; a = self::B|staticMethod(); - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); b1 = self::B|staticGetter; self::B|staticSetter = b2; } diff --git a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.outline.expect b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.outline.expect index e521f766882..144b6b4bbcb 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.outline.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.outline.expect @@ -36,28 +36,28 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void ; diff --git a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.transformed.expect b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.transformed.expect index cd0ee857940..c6b9fda9588 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/external.dart.weak.transformed.expect @@ -38,43 +38,43 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B - return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B - return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), i); +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ + return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ + return js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => js_2::_callMethodUnchecked0(#this, "method"); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => js_2::callMethod(#this, "genericMethod", [t]); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => js_2::callMethod(#this, "genericMethod", [t]); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; -external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T t) → self::B|staticGenericMethod::T; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); - self::B b2 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), 0); + self::B /* = self::A */ b1 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), a); + self::B /* = self::A */ b2 = js_2::_callConstructorUnchecked1(js_2::_getPropertyTrustType(js_2::globalThis, "B"), 0); a = js_2::getProperty(b1, "field"); js_2::setProperty(b1, "field", a); a = js_2::_callMethodUnchecked0(b1, "method"); - b2 = js_2::callMethod(b2, "genericMethod", [b2]); - b1 = js_2::getProperty(b2, "getter"); - js_2::setProperty(b1, "setter", b2); + b2 = js_2::callMethod(b2, "genericMethod", [b2]); + b1 = js_2::getProperty(b2, "getter"); + js_2::setProperty(b1, "setter", b2); a = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticField"); js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticField", a); a = js_2::_callMethodUnchecked0(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticMethod"); - b2 = js_2::callMethod(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGenericMethod", [b2]); - b1 = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGetter"); - js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticSetter", b2); + b2 = js_2::callMethod(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGenericMethod", [b2]); + b1 = js_2::getProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticGetter"); + js_2::setProperty(js_2::_getPropertyTrustType(js_2::globalThis, "B"), "staticSetter", b2); } constants { diff --git a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.strong.expect b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.strong.expect index 5b15c989ea7..04ecd65685d 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.strong.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.strong.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.strong.transformed.expect b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.strong.transformed.expect index 5b15c989ea7..04ecd65685d 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.strong.transformed.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.expect b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.expect index 8bb96fd5ab2..415dbdd774d 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.modular.expect b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.modular.expect index 8bb96fd5ab2..415dbdd774d 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.modular.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.modular.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.outline.expect b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.outline.expect index a12caa52c2e..74a17bc5f71 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.outline.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.outline.expect @@ -18,25 +18,25 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I +static inline-class-member method I|() → self::I /* = core::int */ ; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ ; -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ ; -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ ; -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ ; -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.transformed.expect b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.transformed.expect index 8bb96fd5ab2..415dbdd774d 100644 --- a/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/dartdevc/inline_class/issue51285.dart.weak.transformed.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/annotations.dart.strong.expect b/pkg/front_end/testcases/inline_class/annotations.dart.strong.expect index 7e8714a7524..e2254bf7562 100644 --- a/pkg/front_end/testcases/inline_class/annotations.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/annotations.dart.strong.expect @@ -10,15 +10,15 @@ extension type A(core::int i) { tearoff • = self::A|_#new#tearOff; } @#C2 -static inline-class-member method A|(core::int i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|(core::int i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#new#tearOff(core::int i) → self::A +static inline-class-member method A|_#new#tearOff(core::int i) → self::A /* = core::int */ return self::A|(i); @#C2 -static inline-class-member method A|m(lowered final self::A #this) → void {} -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void {} +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); constants { diff --git a/pkg/front_end/testcases/inline_class/annotations.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/annotations.dart.strong.transformed.expect index 7e8714a7524..e2254bf7562 100644 --- a/pkg/front_end/testcases/inline_class/annotations.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/annotations.dart.strong.transformed.expect @@ -10,15 +10,15 @@ extension type A(core::int i) { tearoff • = self::A|_#new#tearOff; } @#C2 -static inline-class-member method A|(core::int i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|(core::int i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#new#tearOff(core::int i) → self::A +static inline-class-member method A|_#new#tearOff(core::int i) → self::A /* = core::int */ return self::A|(i); @#C2 -static inline-class-member method A|m(lowered final self::A #this) → void {} -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void {} +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); constants { diff --git a/pkg/front_end/testcases/inline_class/annotations.dart.weak.expect b/pkg/front_end/testcases/inline_class/annotations.dart.weak.expect index 7e8714a7524..e2254bf7562 100644 --- a/pkg/front_end/testcases/inline_class/annotations.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/annotations.dart.weak.expect @@ -10,15 +10,15 @@ extension type A(core::int i) { tearoff • = self::A|_#new#tearOff; } @#C2 -static inline-class-member method A|(core::int i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|(core::int i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#new#tearOff(core::int i) → self::A +static inline-class-member method A|_#new#tearOff(core::int i) → self::A /* = core::int */ return self::A|(i); @#C2 -static inline-class-member method A|m(lowered final self::A #this) → void {} -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void {} +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); constants { diff --git a/pkg/front_end/testcases/inline_class/annotations.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/annotations.dart.weak.modular.expect index 7e8714a7524..e2254bf7562 100644 --- a/pkg/front_end/testcases/inline_class/annotations.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/annotations.dart.weak.modular.expect @@ -10,15 +10,15 @@ extension type A(core::int i) { tearoff • = self::A|_#new#tearOff; } @#C2 -static inline-class-member method A|(core::int i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|(core::int i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#new#tearOff(core::int i) → self::A +static inline-class-member method A|_#new#tearOff(core::int i) → self::A /* = core::int */ return self::A|(i); @#C2 -static inline-class-member method A|m(lowered final self::A #this) → void {} -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void {} +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); constants { diff --git a/pkg/front_end/testcases/inline_class/annotations.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/annotations.dart.weak.outline.expect index 20d4b04c0a7..90dd0f74941 100644 --- a/pkg/front_end/testcases/inline_class/annotations.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/annotations.dart.weak.outline.expect @@ -10,14 +10,14 @@ extension type A(core::int i) { tearoff • = self::A|_#new#tearOff; } @core::Deprecated::•("") -static inline-class-member method A|(core::int i) → self::A +static inline-class-member method A|(core::int i) → self::A /* = core::int */ ; -static inline-class-member method A|_#new#tearOff(core::int i) → self::A +static inline-class-member method A|_#new#tearOff(core::int i) → self::A /* = core::int */ return self::A|(i); @core::Deprecated::•("") -static inline-class-member method A|m(lowered final self::A #this) → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void ; -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); diff --git a/pkg/front_end/testcases/inline_class/annotations.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/annotations.dart.weak.transformed.expect index 7e8714a7524..e2254bf7562 100644 --- a/pkg/front_end/testcases/inline_class/annotations.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/annotations.dart.weak.transformed.expect @@ -10,15 +10,15 @@ extension type A(core::int i) { tearoff • = self::A|_#new#tearOff; } @#C2 -static inline-class-member method A|(core::int i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|(core::int i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#new#tearOff(core::int i) → self::A +static inline-class-member method A|_#new#tearOff(core::int i) → self::A /* = core::int */ return self::A|(i); @#C2 -static inline-class-member method A|m(lowered final self::A #this) → void {} -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void {} +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); constants { diff --git a/pkg/front_end/testcases/inline_class/const_constructor.dart.strong.expect b/pkg/front_end/testcases/inline_class/const_constructor.dart.strong.expect index 22dd6ce9e15..b8a2742867d 100644 --- a/pkg/front_end/testcases/inline_class/const_constructor.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/const_constructor.dart.strong.expect @@ -32,29 +32,29 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/const_constructor.dart:20:9: Error: Cannot invoke a non-'const' constructor where a const expression is expected. diff --git a/pkg/front_end/testcases/inline_class/const_constructor.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/const_constructor.dart.strong.transformed.expect index 22dd6ce9e15..b8a2742867d 100644 --- a/pkg/front_end/testcases/inline_class/const_constructor.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/const_constructor.dart.strong.transformed.expect @@ -32,29 +32,29 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/const_constructor.dart:20:9: Error: Cannot invoke a non-'const' constructor where a const expression is expected. diff --git a/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.expect b/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.expect index 22dd6ce9e15..b8a2742867d 100644 --- a/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.expect @@ -32,29 +32,29 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/const_constructor.dart:20:9: Error: Cannot invoke a non-'const' constructor where a const expression is expected. diff --git a/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.modular.expect index 22dd6ce9e15..b8a2742867d 100644 --- a/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.modular.expect @@ -32,29 +32,29 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/const_constructor.dart:20:9: Error: Cannot invoke a non-'const' constructor where a const expression is expected. diff --git a/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.outline.expect index d3de92d0744..68786b110ad 100644 --- a/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.outline.expect @@ -14,25 +14,25 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(core::int i) → self::Class +static inline-class-member method Class|(core::int i) → self::Class /* = core::int */ ; -static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ ; -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ ; -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.transformed.expect index 22dd6ce9e15..b8a2742867d 100644 --- a/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/const_constructor.dart.weak.transformed.expect @@ -32,29 +32,29 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/const_constructor.dart:20:9: Error: Cannot invoke a non-'const' constructor where a const expression is expected. diff --git a/pkg/front_end/testcases/inline_class/constructor_access.dart.strong.expect b/pkg/front_end/testcases/inline_class/constructor_access.dart.strong.expect index 3522022976f..26d1582ceaf 100644 --- a/pkg/front_end/testcases/inline_class/constructor_access.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/constructor_access.dart.strong.expect @@ -12,43 +12,43 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(core::int it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class { - lowered final self::Class #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass /* = self::GenericClass|::T% */ { + lowered final self::GenericClass /* = self::GenericClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic { - self::Class a = self::Class|(3); - self::Class b = self::Class|(4); - self::Class b2 = #C1(4){(core::int) → self::Class}; - self::Class c = self::Class|named(5); - self::Class c2 = #C2(5){(core::int) → self::Class}; - self::GenericClass d = self::GenericClass|("foo"); - self::GenericClass d2 = #C4("foo"){(core::String) → self::GenericClass}; - self::GenericClass d3 = #C3("foo"){(core::String) → self::GenericClass}; - self::GenericClass e = self::GenericClass|("bar"); - self::GenericClass e2 = #C4("bar"){(core::String) → self::GenericClass}; - self::GenericClass e3 = #C3("bar"){(core::String) → self::GenericClass}; - self::GenericClass f = self::GenericClass|(42); - self::GenericClass f2 = #C5(42){(core::int) → self::GenericClass}; - self::GenericClass f3 = #C3(42){(core::int) → self::GenericClass}; - self::GenericClass g = self::GenericClass|(87); - self::GenericClass g2 = #C3(87){(core::int) → self::GenericClass}; - self::GenericClass h = self::GenericClass|(123); - self::GenericClass h2 = #C3(123){(core::num) → self::GenericClass}; + self::Class /* = core::int */ a = self::Class|(3); + self::Class /* = core::int */ b = self::Class|(4); + self::Class /* = core::int */ b2 = #C1(4){(core::int) → self::Class /* = core::int */}; + self::Class /* = core::int */ c = self::Class|named(5); + self::Class /* = core::int */ c2 = #C2(5){(core::int) → self::Class /* = core::int */}; + self::GenericClass /* = core::String */ d = self::GenericClass|("foo"); + self::GenericClass /* = core::String */ d2 = #C4("foo"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ d3 = #C3("foo"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e = self::GenericClass|("bar"); + self::GenericClass /* = core::String */ e2 = #C4("bar"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e3 = #C3("bar"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::int */ f = self::GenericClass|(42); + self::GenericClass /* = core::int */ f2 = #C5(42){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ f3 = #C3(42){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ g = self::GenericClass|(87); + self::GenericClass /* = core::int */ g2 = #C3(87){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::num */ h = self::GenericClass|(123); + self::GenericClass /* = core::num */ h2 = #C3(123){(core::num) → self::GenericClass /* = core::num */}; self::expect(3, a as{Unchecked} core::int); self::expect(3, a); self::expect(4, b as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/constructor_access.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/constructor_access.dart.strong.transformed.expect index 3522022976f..26d1582ceaf 100644 --- a/pkg/front_end/testcases/inline_class/constructor_access.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/constructor_access.dart.strong.transformed.expect @@ -12,43 +12,43 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(core::int it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class { - lowered final self::Class #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass /* = self::GenericClass|::T% */ { + lowered final self::GenericClass /* = self::GenericClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic { - self::Class a = self::Class|(3); - self::Class b = self::Class|(4); - self::Class b2 = #C1(4){(core::int) → self::Class}; - self::Class c = self::Class|named(5); - self::Class c2 = #C2(5){(core::int) → self::Class}; - self::GenericClass d = self::GenericClass|("foo"); - self::GenericClass d2 = #C4("foo"){(core::String) → self::GenericClass}; - self::GenericClass d3 = #C3("foo"){(core::String) → self::GenericClass}; - self::GenericClass e = self::GenericClass|("bar"); - self::GenericClass e2 = #C4("bar"){(core::String) → self::GenericClass}; - self::GenericClass e3 = #C3("bar"){(core::String) → self::GenericClass}; - self::GenericClass f = self::GenericClass|(42); - self::GenericClass f2 = #C5(42){(core::int) → self::GenericClass}; - self::GenericClass f3 = #C3(42){(core::int) → self::GenericClass}; - self::GenericClass g = self::GenericClass|(87); - self::GenericClass g2 = #C3(87){(core::int) → self::GenericClass}; - self::GenericClass h = self::GenericClass|(123); - self::GenericClass h2 = #C3(123){(core::num) → self::GenericClass}; + self::Class /* = core::int */ a = self::Class|(3); + self::Class /* = core::int */ b = self::Class|(4); + self::Class /* = core::int */ b2 = #C1(4){(core::int) → self::Class /* = core::int */}; + self::Class /* = core::int */ c = self::Class|named(5); + self::Class /* = core::int */ c2 = #C2(5){(core::int) → self::Class /* = core::int */}; + self::GenericClass /* = core::String */ d = self::GenericClass|("foo"); + self::GenericClass /* = core::String */ d2 = #C4("foo"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ d3 = #C3("foo"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e = self::GenericClass|("bar"); + self::GenericClass /* = core::String */ e2 = #C4("bar"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e3 = #C3("bar"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::int */ f = self::GenericClass|(42); + self::GenericClass /* = core::int */ f2 = #C5(42){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ f3 = #C3(42){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ g = self::GenericClass|(87); + self::GenericClass /* = core::int */ g2 = #C3(87){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::num */ h = self::GenericClass|(123); + self::GenericClass /* = core::num */ h2 = #C3(123){(core::num) → self::GenericClass /* = core::num */}; self::expect(3, a as{Unchecked} core::int); self::expect(3, a); self::expect(4, b as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.expect b/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.expect index 64868a06ad4..8836c1c123d 100644 --- a/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.expect @@ -12,43 +12,43 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(core::int it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class { - lowered final self::Class #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass /* = self::GenericClass|::T% */ { + lowered final self::GenericClass /* = self::GenericClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic { - self::Class a = self::Class|(3); - self::Class b = self::Class|(4); - self::Class b2 = #C1(4){(core::int) → self::Class}; - self::Class c = self::Class|named(5); - self::Class c2 = #C2(5){(core::int) → self::Class}; - self::GenericClass d = self::GenericClass|("foo"); - self::GenericClass d2 = #C4("foo"){(core::String) → self::GenericClass}; - self::GenericClass d3 = #C3("foo"){(core::String) → self::GenericClass}; - self::GenericClass e = self::GenericClass|("bar"); - self::GenericClass e2 = #C4("bar"){(core::String) → self::GenericClass}; - self::GenericClass e3 = #C3("bar"){(core::String) → self::GenericClass}; - self::GenericClass f = self::GenericClass|(42); - self::GenericClass f2 = #C5(42){(core::int) → self::GenericClass}; - self::GenericClass f3 = #C3(42){(core::int) → self::GenericClass}; - self::GenericClass g = self::GenericClass|(87); - self::GenericClass g2 = #C3(87){(core::int) → self::GenericClass}; - self::GenericClass h = self::GenericClass|(123); - self::GenericClass h2 = #C3(123){(core::num) → self::GenericClass}; + self::Class /* = core::int */ a = self::Class|(3); + self::Class /* = core::int */ b = self::Class|(4); + self::Class /* = core::int */ b2 = #C1(4){(core::int) → self::Class /* = core::int */}; + self::Class /* = core::int */ c = self::Class|named(5); + self::Class /* = core::int */ c2 = #C2(5){(core::int) → self::Class /* = core::int */}; + self::GenericClass /* = core::String */ d = self::GenericClass|("foo"); + self::GenericClass /* = core::String */ d2 = #C4("foo"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ d3 = #C3("foo"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e = self::GenericClass|("bar"); + self::GenericClass /* = core::String */ e2 = #C4("bar"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e3 = #C3("bar"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::int */ f = self::GenericClass|(42); + self::GenericClass /* = core::int */ f2 = #C5(42){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ f3 = #C3(42){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ g = self::GenericClass|(87); + self::GenericClass /* = core::int */ g2 = #C3(87){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::num */ h = self::GenericClass|(123); + self::GenericClass /* = core::num */ h2 = #C3(123){(core::num) → self::GenericClass /* = core::num */}; self::expect(3, a as{Unchecked} core::int); self::expect(3, a); self::expect(4, b as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.modular.expect index 64868a06ad4..8836c1c123d 100644 --- a/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.modular.expect @@ -12,43 +12,43 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(core::int it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class { - lowered final self::Class #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass /* = self::GenericClass|::T% */ { + lowered final self::GenericClass /* = self::GenericClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic { - self::Class a = self::Class|(3); - self::Class b = self::Class|(4); - self::Class b2 = #C1(4){(core::int) → self::Class}; - self::Class c = self::Class|named(5); - self::Class c2 = #C2(5){(core::int) → self::Class}; - self::GenericClass d = self::GenericClass|("foo"); - self::GenericClass d2 = #C4("foo"){(core::String) → self::GenericClass}; - self::GenericClass d3 = #C3("foo"){(core::String) → self::GenericClass}; - self::GenericClass e = self::GenericClass|("bar"); - self::GenericClass e2 = #C4("bar"){(core::String) → self::GenericClass}; - self::GenericClass e3 = #C3("bar"){(core::String) → self::GenericClass}; - self::GenericClass f = self::GenericClass|(42); - self::GenericClass f2 = #C5(42){(core::int) → self::GenericClass}; - self::GenericClass f3 = #C3(42){(core::int) → self::GenericClass}; - self::GenericClass g = self::GenericClass|(87); - self::GenericClass g2 = #C3(87){(core::int) → self::GenericClass}; - self::GenericClass h = self::GenericClass|(123); - self::GenericClass h2 = #C3(123){(core::num) → self::GenericClass}; + self::Class /* = core::int */ a = self::Class|(3); + self::Class /* = core::int */ b = self::Class|(4); + self::Class /* = core::int */ b2 = #C1(4){(core::int) → self::Class /* = core::int */}; + self::Class /* = core::int */ c = self::Class|named(5); + self::Class /* = core::int */ c2 = #C2(5){(core::int) → self::Class /* = core::int */}; + self::GenericClass /* = core::String */ d = self::GenericClass|("foo"); + self::GenericClass /* = core::String */ d2 = #C4("foo"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ d3 = #C3("foo"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e = self::GenericClass|("bar"); + self::GenericClass /* = core::String */ e2 = #C4("bar"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e3 = #C3("bar"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::int */ f = self::GenericClass|(42); + self::GenericClass /* = core::int */ f2 = #C5(42){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ f3 = #C3(42){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ g = self::GenericClass|(87); + self::GenericClass /* = core::int */ g2 = #C3(87){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::num */ h = self::GenericClass|(123); + self::GenericClass /* = core::num */ h2 = #C3(123){(core::num) → self::GenericClass /* = core::num */}; self::expect(3, a as{Unchecked} core::int); self::expect(3, a); self::expect(4, b as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.outline.expect index 321119ea7fc..50e6bc74ff1 100644 --- a/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.outline.expect @@ -12,17 +12,17 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(core::int it) → self::Class +static inline-class-member method Class|(core::int it) → self::Class /* = core::int */ ; -static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ ; -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass +static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass /* = self::GenericClass|::T% */ ; -static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.transformed.expect index 64868a06ad4..8836c1c123d 100644 --- a/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/constructor_access.dart.weak.transformed.expect @@ -12,43 +12,43 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(core::int it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#new#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class { - lowered final self::Class #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|(self::GenericClass|::T% it) → self::GenericClass /* = self::GenericClass|::T% */ { + lowered final self::GenericClass /* = self::GenericClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(self::GenericClass|_#new#tearOff::T% it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic { - self::Class a = self::Class|(3); - self::Class b = self::Class|(4); - self::Class b2 = #C1(4){(core::int) → self::Class}; - self::Class c = self::Class|named(5); - self::Class c2 = #C2(5){(core::int) → self::Class}; - self::GenericClass d = self::GenericClass|("foo"); - self::GenericClass d2 = #C4("foo"){(core::String) → self::GenericClass}; - self::GenericClass d3 = #C3("foo"){(core::String) → self::GenericClass}; - self::GenericClass e = self::GenericClass|("bar"); - self::GenericClass e2 = #C4("bar"){(core::String) → self::GenericClass}; - self::GenericClass e3 = #C3("bar"){(core::String) → self::GenericClass}; - self::GenericClass f = self::GenericClass|(42); - self::GenericClass f2 = #C5(42){(core::int) → self::GenericClass}; - self::GenericClass f3 = #C3(42){(core::int) → self::GenericClass}; - self::GenericClass g = self::GenericClass|(87); - self::GenericClass g2 = #C3(87){(core::int) → self::GenericClass}; - self::GenericClass h = self::GenericClass|(123); - self::GenericClass h2 = #C3(123){(core::num) → self::GenericClass}; + self::Class /* = core::int */ a = self::Class|(3); + self::Class /* = core::int */ b = self::Class|(4); + self::Class /* = core::int */ b2 = #C1(4){(core::int) → self::Class /* = core::int */}; + self::Class /* = core::int */ c = self::Class|named(5); + self::Class /* = core::int */ c2 = #C2(5){(core::int) → self::Class /* = core::int */}; + self::GenericClass /* = core::String */ d = self::GenericClass|("foo"); + self::GenericClass /* = core::String */ d2 = #C4("foo"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ d3 = #C3("foo"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e = self::GenericClass|("bar"); + self::GenericClass /* = core::String */ e2 = #C4("bar"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e3 = #C3("bar"){(core::String) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::int */ f = self::GenericClass|(42); + self::GenericClass /* = core::int */ f2 = #C5(42){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ f3 = #C3(42){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ g = self::GenericClass|(87); + self::GenericClass /* = core::int */ g2 = #C3(87){(core::int) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::num */ h = self::GenericClass|(123); + self::GenericClass /* = core::num */ h2 = #C3(123){(core::num) → self::GenericClass /* = core::num */}; self::expect(3, a as{Unchecked} core::int); self::expect(3, a); self::expect(4, b as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.strong.expect b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.strong.expect index 41949be39ee..fafc24c1bb6 100644 --- a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.strong.expect @@ -34,99 +34,99 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 { - lowered final self::Class1 #this = text.{core::String::length}{core::int}; +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = text.{core::String::length}{core::int}; return #this; } -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 /* = self::Class2|::T% */ { + lowered final self::Class2 /* = self::Class2|::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ { + lowered final self::Class2 /* = self::Class2|named1::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ { + lowered final self::Class2 /* = self::Class2|named2::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ { + lowered final self::Class2 /* = self::Class2|named3::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ { + lowered final self::Class2 /* = self::Class2|named4::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ { + lowered final self::Class2 /* = self::Class2|named5::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 { - lowered final self::Class2 #this = list.{core::Iterable::first}{self::Class2|named6::T%}; +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ { + lowered final self::Class2 /* = self::Class2|named6::T% */ #this = list.{core::Iterable::first}{self::Class2|named6::T%}; return #this; } -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.strong.transformed.expect index 41949be39ee..fafc24c1bb6 100644 --- a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.strong.transformed.expect @@ -34,99 +34,99 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 { - lowered final self::Class1 #this = text.{core::String::length}{core::int}; +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = text.{core::String::length}{core::int}; return #this; } -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 /* = self::Class2|::T% */ { + lowered final self::Class2 /* = self::Class2|::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ { + lowered final self::Class2 /* = self::Class2|named1::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ { + lowered final self::Class2 /* = self::Class2|named2::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ { + lowered final self::Class2 /* = self::Class2|named3::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ { + lowered final self::Class2 /* = self::Class2|named4::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ { + lowered final self::Class2 /* = self::Class2|named5::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 { - lowered final self::Class2 #this = list.{core::Iterable::first}{self::Class2|named6::T%}; +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ { + lowered final self::Class2 /* = self::Class2|named6::T% */ #this = list.{core::Iterable::first}{self::Class2|named6::T%}; return #this; } -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.expect b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.expect index 41949be39ee..fafc24c1bb6 100644 --- a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.expect @@ -34,99 +34,99 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 { - lowered final self::Class1 #this = text.{core::String::length}{core::int}; +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = text.{core::String::length}{core::int}; return #this; } -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 /* = self::Class2|::T% */ { + lowered final self::Class2 /* = self::Class2|::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ { + lowered final self::Class2 /* = self::Class2|named1::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ { + lowered final self::Class2 /* = self::Class2|named2::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ { + lowered final self::Class2 /* = self::Class2|named3::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ { + lowered final self::Class2 /* = self::Class2|named4::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ { + lowered final self::Class2 /* = self::Class2|named5::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 { - lowered final self::Class2 #this = list.{core::Iterable::first}{self::Class2|named6::T%}; +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ { + lowered final self::Class2 /* = self::Class2|named6::T% */ #this = list.{core::Iterable::first}{self::Class2|named6::T%}; return #this; } -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.modular.expect index 41949be39ee..fafc24c1bb6 100644 --- a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.modular.expect @@ -34,99 +34,99 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 { - lowered final self::Class1 #this = text.{core::String::length}{core::int}; +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = text.{core::String::length}{core::int}; return #this; } -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 /* = self::Class2|::T% */ { + lowered final self::Class2 /* = self::Class2|::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ { + lowered final self::Class2 /* = self::Class2|named1::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ { + lowered final self::Class2 /* = self::Class2|named2::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ { + lowered final self::Class2 /* = self::Class2|named3::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ { + lowered final self::Class2 /* = self::Class2|named4::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ { + lowered final self::Class2 /* = self::Class2|named5::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 { - lowered final self::Class2 #this = list.{core::Iterable::first}{self::Class2|named6::T%}; +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ { + lowered final self::Class2 /* = self::Class2|named6::T% */ #this = list.{core::Iterable::first}{self::Class2|named6::T%}; return #this; } -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.outline.expect index 5dd4755b68a..120ebb987e4 100644 --- a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.outline.expect @@ -34,59 +34,59 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 +static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 /* = self::Class2|::T% */ ; -static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ ; -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ ; -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ ; -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ ; -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ ; -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ ; -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.transformed.expect index 41949be39ee..fafc24c1bb6 100644 --- a/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/constructor_bodies.dart.weak.transformed.expect @@ -34,99 +34,99 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 { - lowered final self::Class1 #this = text.{core::String::length}{core::int}; +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = text.{core::String::length}{core::int}; return #this; } -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|(self::Class2|::T% it) → self::Class2 /* = self::Class2|::T% */ { + lowered final self::Class2 /* = self::Class2|::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(self::Class2|_#new#tearOff::T% it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ { + lowered final self::Class2 /* = self::Class2|named1::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ { + lowered final self::Class2 /* = self::Class2|named2::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ { + lowered final self::Class2 /* = self::Class2|named3::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ { + lowered final self::Class2 /* = self::Class2|named4::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ { + lowered final self::Class2 /* = self::Class2|named5::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 { - lowered final self::Class2 #this = list.{core::Iterable::first}{self::Class2|named6::T%}; +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ { + lowered final self::Class2 /* = self::Class2|named6::T% */ #this = list.{core::Iterable::first}{self::Class2|named6::T%}; return #this; } -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.strong.expect b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.strong.expect index 29573f5f9b7..118a61b2739 100644 --- a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.strong.expect @@ -14,23 +14,23 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I { - lowered final self::I #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; +static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [core::int i = #C2]) → void {} -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [core::int i = #C2]) → void {} +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C2]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 { - lowered final self::I2 #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; +static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {core::int i = #C2}) → void {} -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {core::int i = #C2}) → void {} +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C2}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic { self::expect(42, self::I|(0)); diff --git a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.strong.transformed.expect index 29573f5f9b7..118a61b2739 100644 --- a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.strong.transformed.expect @@ -14,23 +14,23 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I { - lowered final self::I #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; +static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [core::int i = #C2]) → void {} -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [core::int i = #C2]) → void {} +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C2]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 { - lowered final self::I2 #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; +static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {core::int i = #C2}) → void {} -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {core::int i = #C2}) → void {} +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C2}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic { self::expect(42, self::I|(0)); diff --git a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.expect b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.expect index 29573f5f9b7..118a61b2739 100644 --- a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.expect @@ -14,23 +14,23 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I { - lowered final self::I #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; +static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [core::int i = #C2]) → void {} -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [core::int i = #C2]) → void {} +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C2]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 { - lowered final self::I2 #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; +static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {core::int i = #C2}) → void {} -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {core::int i = #C2}) → void {} +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C2}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic { self::expect(42, self::I|(0)); diff --git a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.modular.expect index 29573f5f9b7..118a61b2739 100644 --- a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.modular.expect @@ -14,23 +14,23 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I { - lowered final self::I #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; +static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [core::int i = #C2]) → void {} -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [core::int i = #C2]) → void {} +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C2]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 { - lowered final self::I2 #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; +static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {core::int i = #C2}) → void {} -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {core::int i = #C2}) → void {} +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C2}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic { self::expect(42, self::I|(0)); diff --git a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.outline.expect index a54b0cd6ba4..846402b8d30 100644 --- a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.outline.expect @@ -14,21 +14,21 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|(core::int x, [core::int? y = null]) → self::I +static inline-class-member method I|(core::int x, [core::int? y = null]) → self::I /* = core::int */ ; -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [has-declared-initializer core::int i]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [has-declared-initializer core::int i]) → void ; -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|(core::int x, {core::int? y = null}) → self::I2 +static inline-class-member method I2|(core::int x, {core::int? y = null}) → self::I2 /* = core::int */ ; -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {has-declared-initializer core::int i}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {has-declared-initializer core::int i}) → void ; -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.transformed.expect index 29573f5f9b7..118a61b2739 100644 --- a/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/constructor_formal_parameters.dart.weak.transformed.expect @@ -14,23 +14,23 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I { - lowered final self::I #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; +static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [core::int i = #C2]) → void {} -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [core::int i = #C2]) → void {} +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C2]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 { - lowered final self::I2 #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; +static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {core::int i = #C2}) → void {} -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {core::int i = #C2}) → void {} +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C2}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic { self::expect(42, self::I|(0)); diff --git a/pkg/front_end/testcases/inline_class/constructors.dart.strong.expect b/pkg/front_end/testcases/inline_class/constructors.dart.strong.expect index 24241399c3f..d9552a61b6f 100644 --- a/pkg/front_end/testcases/inline_class/constructors.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/constructors.dart.strong.expect @@ -10,15 +10,15 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/constructors.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/constructors.dart.strong.transformed.expect index 24241399c3f..d9552a61b6f 100644 --- a/pkg/front_end/testcases/inline_class/constructors.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/constructors.dart.strong.transformed.expect @@ -10,15 +10,15 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/constructors.dart.weak.expect b/pkg/front_end/testcases/inline_class/constructors.dart.weak.expect index 24241399c3f..d9552a61b6f 100644 --- a/pkg/front_end/testcases/inline_class/constructors.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/constructors.dart.weak.expect @@ -10,15 +10,15 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/constructors.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/constructors.dart.weak.modular.expect index 24241399c3f..d9552a61b6f 100644 --- a/pkg/front_end/testcases/inline_class/constructors.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/constructors.dart.weak.modular.expect @@ -10,15 +10,15 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/constructors.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/constructors.dart.weak.outline.expect index 603763ce9af..390bee828e1 100644 --- a/pkg/front_end/testcases/inline_class/constructors.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/constructors.dart.weak.outline.expect @@ -10,11 +10,11 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ ; -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/constructors.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/constructors.dart.weak.transformed.expect index 24241399c3f..d9552a61b6f 100644 --- a/pkg/front_end/testcases/inline_class/constructors.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/constructors.dart.weak.transformed.expect @@ -10,15 +10,15 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.strong.expect index 359b7646332..f9393d5b704 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.strong.expect @@ -24,26 +24,26 @@ extension type E(self::B it) implements self::B { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -extension type F(self::B it) implements self::E { +extension type F(self::B it) implements self::E /* = self::B */ { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = self::B */ { + lowered final self::E /* = self::B */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::B */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F { - lowered final self::F #this = it; +static inline-class-member method F|(dynamic it) → self::F /* = self::B */ { + lowered final self::F /* = self::B */ #this = it; return #this; } -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = self::B */ return self::F|(it); static method main() → dynamic { self::B b = new self::B::•(); - self::E e = self::E|(b); - self::F f = self::F|(b); + self::E /* = self::B */ e = self::E|(b); + self::F /* = self::B */ f = self::F|(b); self::expect(42, b.{self::A::field}{core::int}); self::expect(42, e.{self::A::field}{core::int}); self::expect(42, f.{self::A::field}{core::int}); diff --git a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.strong.transformed.expect index 359b7646332..f9393d5b704 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.strong.transformed.expect @@ -24,26 +24,26 @@ extension type E(self::B it) implements self::B { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -extension type F(self::B it) implements self::E { +extension type F(self::B it) implements self::E /* = self::B */ { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = self::B */ { + lowered final self::E /* = self::B */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::B */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F { - lowered final self::F #this = it; +static inline-class-member method F|(dynamic it) → self::F /* = self::B */ { + lowered final self::F /* = self::B */ #this = it; return #this; } -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = self::B */ return self::F|(it); static method main() → dynamic { self::B b = new self::B::•(); - self::E e = self::E|(b); - self::F f = self::F|(b); + self::E /* = self::B */ e = self::E|(b); + self::F /* = self::B */ f = self::F|(b); self::expect(42, b.{self::A::field}{core::int}); self::expect(42, e.{self::A::field}{core::int}); self::expect(42, f.{self::A::field}{core::int}); diff --git a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.expect index 359b7646332..f9393d5b704 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.expect @@ -24,26 +24,26 @@ extension type E(self::B it) implements self::B { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -extension type F(self::B it) implements self::E { +extension type F(self::B it) implements self::E /* = self::B */ { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = self::B */ { + lowered final self::E /* = self::B */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::B */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F { - lowered final self::F #this = it; +static inline-class-member method F|(dynamic it) → self::F /* = self::B */ { + lowered final self::F /* = self::B */ #this = it; return #this; } -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = self::B */ return self::F|(it); static method main() → dynamic { self::B b = new self::B::•(); - self::E e = self::E|(b); - self::F f = self::F|(b); + self::E /* = self::B */ e = self::E|(b); + self::F /* = self::B */ f = self::F|(b); self::expect(42, b.{self::A::field}{core::int}); self::expect(42, e.{self::A::field}{core::int}); self::expect(42, f.{self::A::field}{core::int}); diff --git a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.modular.expect index 359b7646332..f9393d5b704 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.modular.expect @@ -24,26 +24,26 @@ extension type E(self::B it) implements self::B { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -extension type F(self::B it) implements self::E { +extension type F(self::B it) implements self::E /* = self::B */ { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = self::B */ { + lowered final self::E /* = self::B */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::B */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F { - lowered final self::F #this = it; +static inline-class-member method F|(dynamic it) → self::F /* = self::B */ { + lowered final self::F /* = self::B */ #this = it; return #this; } -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = self::B */ return self::F|(it); static method main() → dynamic { self::B b = new self::B::•(); - self::E e = self::E|(b); - self::F f = self::F|(b); + self::E /* = self::B */ e = self::E|(b); + self::F /* = self::B */ f = self::F|(b); self::expect(42, b.{self::A::field}{core::int}); self::expect(42, e.{self::A::field}{core::int}); self::expect(42, f.{self::A::field}{core::int}); diff --git a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.outline.expect index d5b3e0ff33c..e207433913f 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.outline.expect @@ -21,17 +21,17 @@ extension type E(self::B it) implements self::B { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -extension type F(self::B it) implements self::E { +extension type F(self::B it) implements self::E /* = self::B */ { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method E|(dynamic it) → self::E +static inline-class-member method E|(dynamic it) → self::E /* = self::B */ ; -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::B */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F +static inline-class-member method F|(dynamic it) → self::F /* = self::B */ ; -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = self::B */ return self::F|(it); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.transformed.expect index 359b7646332..f9393d5b704 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/access_non_extension_type_members.dart.weak.transformed.expect @@ -24,26 +24,26 @@ extension type E(self::B it) implements self::B { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -extension type F(self::B it) implements self::E { +extension type F(self::B it) implements self::E /* = self::B */ { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = self::B */ { + lowered final self::E /* = self::B */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::B */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F { - lowered final self::F #this = it; +static inline-class-member method F|(dynamic it) → self::F /* = self::B */ { + lowered final self::F /* = self::B */ #this = it; return #this; } -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = self::B */ return self::F|(it); static method main() → dynamic { self::B b = new self::B::•(); - self::E e = self::E|(b); - self::F f = self::F|(b); + self::E /* = self::B */ e = self::E|(b); + self::F /* = self::B */ f = self::F|(b); self::expect(42, b.{self::A::field}{core::int}); self::expect(42, e.{self::A::field}{core::int}); self::expect(42, f.{self::A::field}{core::int}); diff --git a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.strong.expect index eca38fb1106..dbafacc300d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.strong.expect @@ -11,22 +11,22 @@ extension type A(core::int i) { constructor constructor = self::A|constructor; tearoff constructor = self::A|_#constructor#tearOff; } -static inline-class-member method A|(@#C2 dynamic i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|(@#C2 dynamic i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic i) → self::A +static inline-class-member method A|_#new#tearOff(dynamic i) → self::A /* = core::int */ return self::A|(i); @#C2 -static inline-class-member method A|constructor(core::int i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|constructor(core::int i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A +static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A /* = core::int */ return self::A|constructor(i); @#C2 -static inline-class-member method A|m(lowered final self::A #this) → void {} -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void {} +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.strong.transformed.expect index eca38fb1106..dbafacc300d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.strong.transformed.expect @@ -11,22 +11,22 @@ extension type A(core::int i) { constructor constructor = self::A|constructor; tearoff constructor = self::A|_#constructor#tearOff; } -static inline-class-member method A|(@#C2 dynamic i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|(@#C2 dynamic i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic i) → self::A +static inline-class-member method A|_#new#tearOff(dynamic i) → self::A /* = core::int */ return self::A|(i); @#C2 -static inline-class-member method A|constructor(core::int i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|constructor(core::int i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A +static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A /* = core::int */ return self::A|constructor(i); @#C2 -static inline-class-member method A|m(lowered final self::A #this) → void {} -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void {} +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.expect index eca38fb1106..dbafacc300d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.expect @@ -11,22 +11,22 @@ extension type A(core::int i) { constructor constructor = self::A|constructor; tearoff constructor = self::A|_#constructor#tearOff; } -static inline-class-member method A|(@#C2 dynamic i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|(@#C2 dynamic i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic i) → self::A +static inline-class-member method A|_#new#tearOff(dynamic i) → self::A /* = core::int */ return self::A|(i); @#C2 -static inline-class-member method A|constructor(core::int i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|constructor(core::int i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A +static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A /* = core::int */ return self::A|constructor(i); @#C2 -static inline-class-member method A|m(lowered final self::A #this) → void {} -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void {} +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.modular.expect index eca38fb1106..dbafacc300d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.modular.expect @@ -11,22 +11,22 @@ extension type A(core::int i) { constructor constructor = self::A|constructor; tearoff constructor = self::A|_#constructor#tearOff; } -static inline-class-member method A|(@#C2 dynamic i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|(@#C2 dynamic i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic i) → self::A +static inline-class-member method A|_#new#tearOff(dynamic i) → self::A /* = core::int */ return self::A|(i); @#C2 -static inline-class-member method A|constructor(core::int i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|constructor(core::int i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A +static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A /* = core::int */ return self::A|constructor(i); @#C2 -static inline-class-member method A|m(lowered final self::A #this) → void {} -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void {} +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.outline.expect index f7eb126a375..62227a338f8 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.outline.expect @@ -11,19 +11,19 @@ extension type A(core::int i) { constructor constructor = self::A|constructor; tearoff constructor = self::A|_#constructor#tearOff; } -static inline-class-member method A|(dynamic i) → self::A +static inline-class-member method A|(dynamic i) → self::A /* = core::int */ ; -static inline-class-member method A|_#new#tearOff(dynamic i) → self::A +static inline-class-member method A|_#new#tearOff(dynamic i) → self::A /* = core::int */ return self::A|(i); @core::Deprecated::•("") -static inline-class-member method A|constructor(core::int i) → self::A +static inline-class-member method A|constructor(core::int i) → self::A /* = core::int */ ; -static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A +static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A /* = core::int */ return self::A|constructor(i); @core::Deprecated::•("") -static inline-class-member method A|m(lowered final self::A #this) → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void ; -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); diff --git a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.transformed.expect index eca38fb1106..dbafacc300d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/annotations.dart.weak.transformed.expect @@ -11,22 +11,22 @@ extension type A(core::int i) { constructor constructor = self::A|constructor; tearoff constructor = self::A|_#constructor#tearOff; } -static inline-class-member method A|(@#C2 dynamic i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|(@#C2 dynamic i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic i) → self::A +static inline-class-member method A|_#new#tearOff(dynamic i) → self::A /* = core::int */ return self::A|(i); @#C2 -static inline-class-member method A|constructor(core::int i) → self::A { - lowered final self::A #this = i; +static inline-class-member method A|constructor(core::int i) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = i; return #this; } -static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A +static inline-class-member method A|_#constructor#tearOff(core::int i) → self::A /* = core::int */ return self::A|constructor(i); @#C2 -static inline-class-member method A|m(lowered final self::A #this) → void {} -static inline-class-member method A|get#m(lowered final self::A #this) → () → void +static inline-class-member method A|m(lowered final self::A /* = core::int */ #this) → void {} +static inline-class-member method A|get#m(lowered final self::A /* = core::int */ #this) → () → void return () → void => self::A|m(#this); constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.strong.expect index c50e2a6d090..362c8de816d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.strong.expect @@ -32,29 +32,29 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(dynamic i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|(dynamic i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart:16:9: Error: Cannot invoke a non-'const' constructor where a const expression is expected. diff --git a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.strong.transformed.expect index c50e2a6d090..362c8de816d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.strong.transformed.expect @@ -32,29 +32,29 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(dynamic i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|(dynamic i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart:16:9: Error: Cannot invoke a non-'const' constructor where a const expression is expected. diff --git a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.expect index c50e2a6d090..362c8de816d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.expect @@ -32,29 +32,29 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(dynamic i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|(dynamic i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart:16:9: Error: Cannot invoke a non-'const' constructor where a const expression is expected. diff --git a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.modular.expect index c50e2a6d090..362c8de816d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.modular.expect @@ -32,29 +32,29 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(dynamic i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|(dynamic i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart:16:9: Error: Cannot invoke a non-'const' constructor where a const expression is expected. diff --git a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.outline.expect index c8e528810dc..f96841059d4 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.outline.expect @@ -14,25 +14,25 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(dynamic i) → self::Class +static inline-class-member method Class|(dynamic i) → self::Class /* = core::int */ ; -static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ ; -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ ; -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.transformed.expect index c50e2a6d090..362c8de816d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart.weak.transformed.expect @@ -32,29 +32,29 @@ extension type Class(core::int i) { static redirecting-factory redirect2 = self::Class|redirect2; static tearoff redirect2 = self::Class|_#redirect2#tearOff; } -static inline-class-member method Class|(dynamic i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|(dynamic i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|named(core::int i) → self::Class { - lowered final self::Class #this = i; +static inline-class-member method Class|named(core::int i) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = i; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|named(i); -static inline-class-member method Class|redirect(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|fact(core::int i) → self::Class +static inline-class-member method Class|fact(core::int i) → self::Class /* = core::int */ return self::Class|(i); -static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#fact#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|fact(i); -static inline-class-member method Class|redirect2(core::int i) → self::Class /* redirection-target: self::Class| */ +static inline-class-member method Class|redirect2(core::int i) → self::Class /* = core::int */ /* redirection-target: self::Class| */ return self::Class|(i); -static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class +static inline-class-member method Class|_#redirect2#tearOff(core::int i) → self::Class /* = core::int */ return self::Class|(i); static method test() → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/extension_types/const_constructor.dart:16:9: Error: Cannot invoke a non-'const' constructor where a const expression is expected. diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.strong.expect index 6ec44584fe7..ac0d23f91cc 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.strong.expect @@ -12,43 +12,43 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(dynamic it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|(dynamic it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class { - lowered final self::Class #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(dynamic it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|(dynamic it) → self::GenericClass /* = self::GenericClass|::T% */ { + lowered final self::GenericClass /* = self::GenericClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic { - self::Class a = self::Class|(3); - self::Class b = self::Class|(4); - self::Class b2 = #C1(4){(dynamic) → self::Class}; - self::Class c = self::Class|named(5); - self::Class c2 = #C2(5){(core::int) → self::Class}; - self::GenericClass d = self::GenericClass|("foo"); - self::GenericClass d2 = #C4("foo"){(dynamic) → self::GenericClass}; - self::GenericClass d3 = #C3("foo"){(dynamic) → self::GenericClass}; - self::GenericClass e = self::GenericClass|("bar"); - self::GenericClass e2 = #C4("bar"){(dynamic) → self::GenericClass}; - self::GenericClass e3 = #C3("bar"){(dynamic) → self::GenericClass}; - self::GenericClass f = self::GenericClass|(42); - self::GenericClass f2 = #C5(42){(dynamic) → self::GenericClass}; - self::GenericClass f3 = #C3(42){(dynamic) → self::GenericClass}; - self::GenericClass g = self::GenericClass|(87); - self::GenericClass g2 = #C3(87){(dynamic) → self::GenericClass}; - self::GenericClass h = self::GenericClass|(123); - self::GenericClass h2 = #C3(123){(dynamic) → self::GenericClass}; + self::Class /* = core::int */ a = self::Class|(3); + self::Class /* = core::int */ b = self::Class|(4); + self::Class /* = core::int */ b2 = #C1(4){(dynamic) → self::Class /* = core::int */}; + self::Class /* = core::int */ c = self::Class|named(5); + self::Class /* = core::int */ c2 = #C2(5){(core::int) → self::Class /* = core::int */}; + self::GenericClass /* = core::String */ d = self::GenericClass|("foo"); + self::GenericClass /* = core::String */ d2 = #C4("foo"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ d3 = #C3("foo"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e = self::GenericClass|("bar"); + self::GenericClass /* = core::String */ e2 = #C4("bar"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e3 = #C3("bar"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::int */ f = self::GenericClass|(42); + self::GenericClass /* = core::int */ f2 = #C5(42){(dynamic) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ f3 = #C3(42){(dynamic) → self::GenericClass /* = core::int */}; + self::GenericClass /* = dynamic */ g = self::GenericClass|(87); + self::GenericClass /* = dynamic */ g2 = #C3(87){(dynamic) → self::GenericClass /* = dynamic */}; + self::GenericClass /* = core::num */ h = self::GenericClass|(123); + self::GenericClass /* = core::num */ h2 = #C3(123){(dynamic) → self::GenericClass /* = core::num */}; self::expect(3, a as{Unchecked} core::int); self::expect(3, a); self::expect(4, b as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.strong.transformed.expect index 6ec44584fe7..ac0d23f91cc 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.strong.transformed.expect @@ -12,43 +12,43 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(dynamic it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|(dynamic it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class { - lowered final self::Class #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(dynamic it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|(dynamic it) → self::GenericClass /* = self::GenericClass|::T% */ { + lowered final self::GenericClass /* = self::GenericClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic { - self::Class a = self::Class|(3); - self::Class b = self::Class|(4); - self::Class b2 = #C1(4){(dynamic) → self::Class}; - self::Class c = self::Class|named(5); - self::Class c2 = #C2(5){(core::int) → self::Class}; - self::GenericClass d = self::GenericClass|("foo"); - self::GenericClass d2 = #C4("foo"){(dynamic) → self::GenericClass}; - self::GenericClass d3 = #C3("foo"){(dynamic) → self::GenericClass}; - self::GenericClass e = self::GenericClass|("bar"); - self::GenericClass e2 = #C4("bar"){(dynamic) → self::GenericClass}; - self::GenericClass e3 = #C3("bar"){(dynamic) → self::GenericClass}; - self::GenericClass f = self::GenericClass|(42); - self::GenericClass f2 = #C5(42){(dynamic) → self::GenericClass}; - self::GenericClass f3 = #C3(42){(dynamic) → self::GenericClass}; - self::GenericClass g = self::GenericClass|(87); - self::GenericClass g2 = #C3(87){(dynamic) → self::GenericClass}; - self::GenericClass h = self::GenericClass|(123); - self::GenericClass h2 = #C3(123){(dynamic) → self::GenericClass}; + self::Class /* = core::int */ a = self::Class|(3); + self::Class /* = core::int */ b = self::Class|(4); + self::Class /* = core::int */ b2 = #C1(4){(dynamic) → self::Class /* = core::int */}; + self::Class /* = core::int */ c = self::Class|named(5); + self::Class /* = core::int */ c2 = #C2(5){(core::int) → self::Class /* = core::int */}; + self::GenericClass /* = core::String */ d = self::GenericClass|("foo"); + self::GenericClass /* = core::String */ d2 = #C4("foo"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ d3 = #C3("foo"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e = self::GenericClass|("bar"); + self::GenericClass /* = core::String */ e2 = #C4("bar"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e3 = #C3("bar"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::int */ f = self::GenericClass|(42); + self::GenericClass /* = core::int */ f2 = #C5(42){(dynamic) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ f3 = #C3(42){(dynamic) → self::GenericClass /* = core::int */}; + self::GenericClass /* = dynamic */ g = self::GenericClass|(87); + self::GenericClass /* = dynamic */ g2 = #C3(87){(dynamic) → self::GenericClass /* = dynamic */}; + self::GenericClass /* = core::num */ h = self::GenericClass|(123); + self::GenericClass /* = core::num */ h2 = #C3(123){(dynamic) → self::GenericClass /* = core::num */}; self::expect(3, a as{Unchecked} core::int); self::expect(3, a); self::expect(4, b as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.expect index b28b48db08a..4a60fd4d9c2 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.expect @@ -12,43 +12,43 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(dynamic it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|(dynamic it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class { - lowered final self::Class #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(dynamic it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|(dynamic it) → self::GenericClass /* = self::GenericClass|::T% */ { + lowered final self::GenericClass /* = self::GenericClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic { - self::Class a = self::Class|(3); - self::Class b = self::Class|(4); - self::Class b2 = #C1(4){(dynamic) → self::Class}; - self::Class c = self::Class|named(5); - self::Class c2 = #C2(5){(core::int) → self::Class}; - self::GenericClass d = self::GenericClass|("foo"); - self::GenericClass d2 = #C4("foo"){(dynamic) → self::GenericClass}; - self::GenericClass d3 = #C3("foo"){(dynamic) → self::GenericClass}; - self::GenericClass e = self::GenericClass|("bar"); - self::GenericClass e2 = #C4("bar"){(dynamic) → self::GenericClass}; - self::GenericClass e3 = #C3("bar"){(dynamic) → self::GenericClass}; - self::GenericClass f = self::GenericClass|(42); - self::GenericClass f2 = #C5(42){(dynamic) → self::GenericClass}; - self::GenericClass f3 = #C3(42){(dynamic) → self::GenericClass}; - self::GenericClass g = self::GenericClass|(87); - self::GenericClass g2 = #C3(87){(dynamic) → self::GenericClass}; - self::GenericClass h = self::GenericClass|(123); - self::GenericClass h2 = #C3(123){(dynamic) → self::GenericClass}; + self::Class /* = core::int */ a = self::Class|(3); + self::Class /* = core::int */ b = self::Class|(4); + self::Class /* = core::int */ b2 = #C1(4){(dynamic) → self::Class /* = core::int */}; + self::Class /* = core::int */ c = self::Class|named(5); + self::Class /* = core::int */ c2 = #C2(5){(core::int) → self::Class /* = core::int */}; + self::GenericClass /* = core::String */ d = self::GenericClass|("foo"); + self::GenericClass /* = core::String */ d2 = #C4("foo"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ d3 = #C3("foo"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e = self::GenericClass|("bar"); + self::GenericClass /* = core::String */ e2 = #C4("bar"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e3 = #C3("bar"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::int */ f = self::GenericClass|(42); + self::GenericClass /* = core::int */ f2 = #C5(42){(dynamic) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ f3 = #C3(42){(dynamic) → self::GenericClass /* = core::int */}; + self::GenericClass /* = dynamic */ g = self::GenericClass|(87); + self::GenericClass /* = dynamic */ g2 = #C3(87){(dynamic) → self::GenericClass /* = dynamic */}; + self::GenericClass /* = core::num */ h = self::GenericClass|(123); + self::GenericClass /* = core::num */ h2 = #C3(123){(dynamic) → self::GenericClass /* = core::num */}; self::expect(3, a as{Unchecked} core::int); self::expect(3, a); self::expect(4, b as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.modular.expect index b28b48db08a..4a60fd4d9c2 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.modular.expect @@ -12,43 +12,43 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(dynamic it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|(dynamic it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class { - lowered final self::Class #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(dynamic it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|(dynamic it) → self::GenericClass /* = self::GenericClass|::T% */ { + lowered final self::GenericClass /* = self::GenericClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic { - self::Class a = self::Class|(3); - self::Class b = self::Class|(4); - self::Class b2 = #C1(4){(dynamic) → self::Class}; - self::Class c = self::Class|named(5); - self::Class c2 = #C2(5){(core::int) → self::Class}; - self::GenericClass d = self::GenericClass|("foo"); - self::GenericClass d2 = #C4("foo"){(dynamic) → self::GenericClass}; - self::GenericClass d3 = #C3("foo"){(dynamic) → self::GenericClass}; - self::GenericClass e = self::GenericClass|("bar"); - self::GenericClass e2 = #C4("bar"){(dynamic) → self::GenericClass}; - self::GenericClass e3 = #C3("bar"){(dynamic) → self::GenericClass}; - self::GenericClass f = self::GenericClass|(42); - self::GenericClass f2 = #C5(42){(dynamic) → self::GenericClass}; - self::GenericClass f3 = #C3(42){(dynamic) → self::GenericClass}; - self::GenericClass g = self::GenericClass|(87); - self::GenericClass g2 = #C3(87){(dynamic) → self::GenericClass}; - self::GenericClass h = self::GenericClass|(123); - self::GenericClass h2 = #C3(123){(dynamic) → self::GenericClass}; + self::Class /* = core::int */ a = self::Class|(3); + self::Class /* = core::int */ b = self::Class|(4); + self::Class /* = core::int */ b2 = #C1(4){(dynamic) → self::Class /* = core::int */}; + self::Class /* = core::int */ c = self::Class|named(5); + self::Class /* = core::int */ c2 = #C2(5){(core::int) → self::Class /* = core::int */}; + self::GenericClass /* = core::String */ d = self::GenericClass|("foo"); + self::GenericClass /* = core::String */ d2 = #C4("foo"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ d3 = #C3("foo"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e = self::GenericClass|("bar"); + self::GenericClass /* = core::String */ e2 = #C4("bar"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e3 = #C3("bar"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::int */ f = self::GenericClass|(42); + self::GenericClass /* = core::int */ f2 = #C5(42){(dynamic) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ f3 = #C3(42){(dynamic) → self::GenericClass /* = core::int */}; + self::GenericClass /* = dynamic */ g = self::GenericClass|(87); + self::GenericClass /* = dynamic */ g2 = #C3(87){(dynamic) → self::GenericClass /* = dynamic */}; + self::GenericClass /* = core::num */ h = self::GenericClass|(123); + self::GenericClass /* = core::num */ h2 = #C3(123){(dynamic) → self::GenericClass /* = core::num */}; self::expect(3, a as{Unchecked} core::int); self::expect(3, a); self::expect(4, b as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.outline.expect index ba770cfb88f..b07424b6dd5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.outline.expect @@ -12,17 +12,17 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(dynamic it) → self::Class +static inline-class-member method Class|(dynamic it) → self::Class /* = core::int */ ; -static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ ; -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|(dynamic it) → self::GenericClass /* = self::GenericClass|::T% */ ; -static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.transformed.expect index b28b48db08a..4a60fd4d9c2 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_access.dart.weak.transformed.expect @@ -12,43 +12,43 @@ extension type GenericClass(T% it) { constructor • = self::GenericClass|; tearoff • = self::GenericClass|_#new#tearOff; } -static inline-class-member method Class|(dynamic it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|(dynamic it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#new#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|(it); -static inline-class-member method Class|named(core::int it) → self::Class { - lowered final self::Class #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method Class|named(core::int it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class +static inline-class-member method Class|_#named#tearOff(core::int it) → self::Class /* = core::int */ return self::Class|named(it); -static inline-class-member method GenericClass|(dynamic it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|(dynamic it) → self::GenericClass /* = self::GenericClass|::T% */ { + lowered final self::GenericClass /* = self::GenericClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#new#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#new#tearOff::T% */ return self::GenericClass|(it); static method main() → dynamic { - self::Class a = self::Class|(3); - self::Class b = self::Class|(4); - self::Class b2 = #C1(4){(dynamic) → self::Class}; - self::Class c = self::Class|named(5); - self::Class c2 = #C2(5){(core::int) → self::Class}; - self::GenericClass d = self::GenericClass|("foo"); - self::GenericClass d2 = #C4("foo"){(dynamic) → self::GenericClass}; - self::GenericClass d3 = #C3("foo"){(dynamic) → self::GenericClass}; - self::GenericClass e = self::GenericClass|("bar"); - self::GenericClass e2 = #C4("bar"){(dynamic) → self::GenericClass}; - self::GenericClass e3 = #C3("bar"){(dynamic) → self::GenericClass}; - self::GenericClass f = self::GenericClass|(42); - self::GenericClass f2 = #C5(42){(dynamic) → self::GenericClass}; - self::GenericClass f3 = #C3(42){(dynamic) → self::GenericClass}; - self::GenericClass g = self::GenericClass|(87); - self::GenericClass g2 = #C3(87){(dynamic) → self::GenericClass}; - self::GenericClass h = self::GenericClass|(123); - self::GenericClass h2 = #C3(123){(dynamic) → self::GenericClass}; + self::Class /* = core::int */ a = self::Class|(3); + self::Class /* = core::int */ b = self::Class|(4); + self::Class /* = core::int */ b2 = #C1(4){(dynamic) → self::Class /* = core::int */}; + self::Class /* = core::int */ c = self::Class|named(5); + self::Class /* = core::int */ c2 = #C2(5){(core::int) → self::Class /* = core::int */}; + self::GenericClass /* = core::String */ d = self::GenericClass|("foo"); + self::GenericClass /* = core::String */ d2 = #C4("foo"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ d3 = #C3("foo"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e = self::GenericClass|("bar"); + self::GenericClass /* = core::String */ e2 = #C4("bar"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::String */ e3 = #C3("bar"){(dynamic) → self::GenericClass /* = core::String */}; + self::GenericClass /* = core::int */ f = self::GenericClass|(42); + self::GenericClass /* = core::int */ f2 = #C5(42){(dynamic) → self::GenericClass /* = core::int */}; + self::GenericClass /* = core::int */ f3 = #C3(42){(dynamic) → self::GenericClass /* = core::int */}; + self::GenericClass /* = dynamic */ g = self::GenericClass|(87); + self::GenericClass /* = dynamic */ g2 = #C3(87){(dynamic) → self::GenericClass /* = dynamic */}; + self::GenericClass /* = core::num */ h = self::GenericClass|(123); + self::GenericClass /* = core::num */ h2 = #C3(123){(dynamic) → self::GenericClass /* = core::num */}; self::expect(3, a as{Unchecked} core::int); self::expect(3, a); self::expect(4, b as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.strong.expect index 68afa1a4247..5ed48c623dc 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.strong.expect @@ -34,99 +34,99 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 { - lowered final self::Class1 #this = text.{core::String::length}{core::int}; +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = text.{core::String::length}{core::int}; return #this; } -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(dynamic it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|(dynamic it) → self::Class2 /* = self::Class2|::T% */ { + lowered final self::Class2 /* = self::Class2|::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ { + lowered final self::Class2 /* = self::Class2|named1::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ { + lowered final self::Class2 /* = self::Class2|named2::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ { + lowered final self::Class2 /* = self::Class2|named3::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ { + lowered final self::Class2 /* = self::Class2|named4::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ { + lowered final self::Class2 /* = self::Class2|named5::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 { - lowered final self::Class2 #this = list.{core::Iterable::first}{self::Class2|named6::T%}; +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ { + lowered final self::Class2 /* = self::Class2|named6::T% */ #this = list.{core::Iterable::first}{self::Class2|named6::T%}; return #this; } -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.strong.transformed.expect index 68afa1a4247..5ed48c623dc 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.strong.transformed.expect @@ -34,99 +34,99 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 { - lowered final self::Class1 #this = text.{core::String::length}{core::int}; +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = text.{core::String::length}{core::int}; return #this; } -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(dynamic it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|(dynamic it) → self::Class2 /* = self::Class2|::T% */ { + lowered final self::Class2 /* = self::Class2|::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ { + lowered final self::Class2 /* = self::Class2|named1::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ { + lowered final self::Class2 /* = self::Class2|named2::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ { + lowered final self::Class2 /* = self::Class2|named3::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ { + lowered final self::Class2 /* = self::Class2|named4::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ { + lowered final self::Class2 /* = self::Class2|named5::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 { - lowered final self::Class2 #this = list.{core::Iterable::first}{self::Class2|named6::T%}; +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ { + lowered final self::Class2 /* = self::Class2|named6::T% */ #this = list.{core::Iterable::first}{self::Class2|named6::T%}; return #this; } -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.expect index 68afa1a4247..5ed48c623dc 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.expect @@ -34,99 +34,99 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 { - lowered final self::Class1 #this = text.{core::String::length}{core::int}; +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = text.{core::String::length}{core::int}; return #this; } -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(dynamic it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|(dynamic it) → self::Class2 /* = self::Class2|::T% */ { + lowered final self::Class2 /* = self::Class2|::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ { + lowered final self::Class2 /* = self::Class2|named1::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ { + lowered final self::Class2 /* = self::Class2|named2::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ { + lowered final self::Class2 /* = self::Class2|named3::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ { + lowered final self::Class2 /* = self::Class2|named4::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ { + lowered final self::Class2 /* = self::Class2|named5::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 { - lowered final self::Class2 #this = list.{core::Iterable::first}{self::Class2|named6::T%}; +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ { + lowered final self::Class2 /* = self::Class2|named6::T% */ #this = list.{core::Iterable::first}{self::Class2|named6::T%}; return #this; } -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.modular.expect index 68afa1a4247..5ed48c623dc 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.modular.expect @@ -34,99 +34,99 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 { - lowered final self::Class1 #this = text.{core::String::length}{core::int}; +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = text.{core::String::length}{core::int}; return #this; } -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(dynamic it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|(dynamic it) → self::Class2 /* = self::Class2|::T% */ { + lowered final self::Class2 /* = self::Class2|::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ { + lowered final self::Class2 /* = self::Class2|named1::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ { + lowered final self::Class2 /* = self::Class2|named2::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ { + lowered final self::Class2 /* = self::Class2|named3::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ { + lowered final self::Class2 /* = self::Class2|named4::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ { + lowered final self::Class2 /* = self::Class2|named5::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 { - lowered final self::Class2 #this = list.{core::Iterable::first}{self::Class2|named6::T%}; +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ { + lowered final self::Class2 /* = self::Class2|named6::T% */ #this = list.{core::Iterable::first}{self::Class2|named6::T%}; return #this; } -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.outline.expect index 75c262a6942..836e124a98e 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.outline.expect @@ -34,59 +34,59 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(dynamic it) → self::Class2 +static inline-class-member method Class2|(dynamic it) → self::Class2 /* = self::Class2|::T% */ ; -static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ ; -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ ; -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ ; -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ ; -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ ; -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ ; -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.transformed.expect index 68afa1a4247..5ed48c623dc 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_bodies.dart.weak.transformed.expect @@ -34,99 +34,99 @@ extension type Class2(T% it) { constructor named6 = self::Class2|named6; tearoff named6 = self::Class2|_#named6#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named1(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named1#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named1(it, additional); -static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named2(core::int it, core::int additional) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 +static inline-class-member method Class1|_#named2#tearOff(core::int it, core::int additional) → self::Class1 /* = core::int */ return self::Class1|named2(it, additional); -static inline-class-member method Class1|named3(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named3(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#named3#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|named3(it); -static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named4(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named4#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named4(additional, it); -static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|named5(core::int additional, core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 +static inline-class-member method Class1|_#named5#tearOff(core::int additional, core::int it) → self::Class1 /* = core::int */ return self::Class1|named5(additional, it); -static inline-class-member method Class1|named6(core::String text) → self::Class1 { - lowered final self::Class1 #this = text.{core::String::length}{core::int}; +static inline-class-member method Class1|named6(core::String text) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = text.{core::String::length}{core::int}; return #this; } -static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 +static inline-class-member method Class1|_#named6#tearOff(core::String text) → self::Class1 /* = core::int */ return self::Class1|named6(text); -static inline-class-member method Class2|(dynamic it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|(dynamic it) → self::Class2 /* = self::Class2|::T% */ { + lowered final self::Class2 /* = self::Class2|::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic it) → self::Class2 /* = self::Class2|_#new#tearOff::T% */ return self::Class2|(it); -static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named1(self::Class2|named1::T% it, core::int additional) → self::Class2 /* = self::Class2|named1::T% */ { + lowered final self::Class2 /* = self::Class2|named1::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named1#tearOff(self::Class2|_#named1#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named1#tearOff::T% */ return self::Class2|named1(it, additional); -static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named2(self::Class2|named2::T% it, core::int additional) → self::Class2 /* = self::Class2|named2::T% */ { + lowered final self::Class2 /* = self::Class2|named2::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 +static inline-class-member method Class2|_#named2#tearOff(self::Class2|_#named2#tearOff::T% it, core::int additional) → self::Class2 /* = self::Class2|_#named2#tearOff::T% */ return self::Class2|named2(it, additional); -static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named3(self::Class2|named3::T% it) → self::Class2 /* = self::Class2|named3::T% */ { + lowered final self::Class2 /* = self::Class2|named3::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named3#tearOff(self::Class2|_#named3#tearOff::T% it) → self::Class2 /* = self::Class2|_#named3#tearOff::T% */ return self::Class2|named3(it); -static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named4(core::int additional, self::Class2|named4::T% it) → self::Class2 /* = self::Class2|named4::T% */ { + lowered final self::Class2 /* = self::Class2|named4::T% */ #this = it; return #this; } -static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named4#tearOff(core::int additional, self::Class2|_#named4#tearOff::T% it) → self::Class2 /* = self::Class2|_#named4#tearOff::T% */ return self::Class2|named4(additional, it); -static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 { - lowered final self::Class2 #this = it; +static inline-class-member method Class2|named5(core::int additional, self::Class2|named5::T% it) → self::Class2 /* = self::Class2|named5::T% */ { + lowered final self::Class2 /* = self::Class2|named5::T% */ #this = it; { core::print(additional); } return #this; } -static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 +static inline-class-member method Class2|_#named5#tearOff(core::int additional, self::Class2|_#named5#tearOff::T% it) → self::Class2 /* = self::Class2|_#named5#tearOff::T% */ return self::Class2|named5(additional, it); -static inline-class-member method Class2|named6(core::List list) → self::Class2 { - lowered final self::Class2 #this = list.{core::Iterable::first}{self::Class2|named6::T%}; +static inline-class-member method Class2|named6(core::List list) → self::Class2 /* = self::Class2|named6::T% */ { + lowered final self::Class2 /* = self::Class2|named6::T% */ #this = list.{core::Iterable::first}{self::Class2|named6::T%}; return #this; } -static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 +static inline-class-member method Class2|_#named6#tearOff(core::List list) → self::Class2 /* = self::Class2|_#named6#tearOff::T% */ return self::Class2|named6(list); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.strong.expect index e67c62cdd3d..769ed61b6f4 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.strong.expect @@ -18,35 +18,35 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|_(dynamic it) → self::I { - lowered final self::I #this = it; +static inline-class-member method I|_(dynamic it) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = it; return #this; } -static inline-class-member method I|_#_#tearOff(dynamic it) → self::I +static inline-class-member method I|_#_#tearOff(dynamic it) → self::I /* = core::int */ return self::I|_(it); -static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I { - lowered final self::I #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; +static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [core::int i = #C2]) → void {} -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [core::int i = #C2]) → void {} +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C2]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|_(dynamic it) → self::I2 { - lowered final self::I2 #this = it; +static inline-class-member method I2|_(dynamic it) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = it; return #this; } -static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 +static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 /* = core::int */ return self::I2|_(it); -static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 { - lowered final self::I2 #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; +static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {core::int i = #C2}) → void {} -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {core::int i = #C2}) → void {} +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C2}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic { self::expect(42, self::I|(0)); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.strong.transformed.expect index e67c62cdd3d..769ed61b6f4 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.strong.transformed.expect @@ -18,35 +18,35 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|_(dynamic it) → self::I { - lowered final self::I #this = it; +static inline-class-member method I|_(dynamic it) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = it; return #this; } -static inline-class-member method I|_#_#tearOff(dynamic it) → self::I +static inline-class-member method I|_#_#tearOff(dynamic it) → self::I /* = core::int */ return self::I|_(it); -static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I { - lowered final self::I #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; +static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [core::int i = #C2]) → void {} -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [core::int i = #C2]) → void {} +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C2]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|_(dynamic it) → self::I2 { - lowered final self::I2 #this = it; +static inline-class-member method I2|_(dynamic it) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = it; return #this; } -static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 +static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 /* = core::int */ return self::I2|_(it); -static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 { - lowered final self::I2 #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; +static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {core::int i = #C2}) → void {} -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {core::int i = #C2}) → void {} +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C2}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic { self::expect(42, self::I|(0)); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.expect index e67c62cdd3d..769ed61b6f4 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.expect @@ -18,35 +18,35 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|_(dynamic it) → self::I { - lowered final self::I #this = it; +static inline-class-member method I|_(dynamic it) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = it; return #this; } -static inline-class-member method I|_#_#tearOff(dynamic it) → self::I +static inline-class-member method I|_#_#tearOff(dynamic it) → self::I /* = core::int */ return self::I|_(it); -static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I { - lowered final self::I #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; +static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [core::int i = #C2]) → void {} -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [core::int i = #C2]) → void {} +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C2]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|_(dynamic it) → self::I2 { - lowered final self::I2 #this = it; +static inline-class-member method I2|_(dynamic it) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = it; return #this; } -static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 +static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 /* = core::int */ return self::I2|_(it); -static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 { - lowered final self::I2 #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; +static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {core::int i = #C2}) → void {} -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {core::int i = #C2}) → void {} +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C2}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic { self::expect(42, self::I|(0)); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.modular.expect index e67c62cdd3d..769ed61b6f4 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.modular.expect @@ -18,35 +18,35 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|_(dynamic it) → self::I { - lowered final self::I #this = it; +static inline-class-member method I|_(dynamic it) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = it; return #this; } -static inline-class-member method I|_#_#tearOff(dynamic it) → self::I +static inline-class-member method I|_#_#tearOff(dynamic it) → self::I /* = core::int */ return self::I|_(it); -static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I { - lowered final self::I #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; +static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [core::int i = #C2]) → void {} -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [core::int i = #C2]) → void {} +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C2]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|_(dynamic it) → self::I2 { - lowered final self::I2 #this = it; +static inline-class-member method I2|_(dynamic it) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = it; return #this; } -static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 +static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 /* = core::int */ return self::I2|_(it); -static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 { - lowered final self::I2 #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; +static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {core::int i = #C2}) → void {} -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {core::int i = #C2}) → void {} +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C2}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic { self::expect(42, self::I|(0)); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.outline.expect index 393918a9439..f7fcd935a16 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.outline.expect @@ -18,29 +18,29 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|_(dynamic it) → self::I +static inline-class-member method I|_(dynamic it) → self::I /* = core::int */ ; -static inline-class-member method I|_#_#tearOff(dynamic it) → self::I +static inline-class-member method I|_#_#tearOff(dynamic it) → self::I /* = core::int */ return self::I|_(it); -static inline-class-member method I|(core::int x, [core::int? y = null]) → self::I +static inline-class-member method I|(core::int x, [core::int? y = null]) → self::I /* = core::int */ ; -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [has-declared-initializer core::int i]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [has-declared-initializer core::int i]) → void ; -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|_(dynamic it) → self::I2 +static inline-class-member method I2|_(dynamic it) → self::I2 /* = core::int */ ; -static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 +static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 /* = core::int */ return self::I2|_(it); -static inline-class-member method I2|(core::int x, {core::int? y = null}) → self::I2 +static inline-class-member method I2|(core::int x, {core::int? y = null}) → self::I2 /* = core::int */ ; -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {has-declared-initializer core::int i}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {has-declared-initializer core::int i}) → void ; -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.transformed.expect index e67c62cdd3d..769ed61b6f4 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructor_formal_parameters.dart.weak.transformed.expect @@ -18,35 +18,35 @@ extension type I2(core::int it) { constructor • = self::I2|; tearoff • = self::I2|_#new#tearOff; } -static inline-class-member method I|_(dynamic it) → self::I { - lowered final self::I #this = it; +static inline-class-member method I|_(dynamic it) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = it; return #this; } -static inline-class-member method I|_#_#tearOff(dynamic it) → self::I +static inline-class-member method I|_#_#tearOff(dynamic it) → self::I /* = core::int */ return self::I|_(it); -static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I { - lowered final self::I #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; +static inline-class-member method I|(core::int x, [core::int? y = #C1]) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = x.{core::num::+}(let final core::int? #t1 = y in #t1 == null ?{core::int} 42 : #t1{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I +static inline-class-member method I|_#new#tearOff(core::int x, [core::int? y]) → self::I /* = core::int */ return self::I|(x, y); -static inline-class-member method I|m(lowered final self::I #this, core::String s, [core::int i = #C2]) → void {} -static inline-class-member method I|get#m(lowered final self::I #this) → (core::String, [core::int]) → void +static inline-class-member method I|m(lowered final self::I /* = core::int */ #this, core::String s, [core::int i = #C2]) → void {} +static inline-class-member method I|get#m(lowered final self::I /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C2]) → void => self::I|m(#this, s, i); -static inline-class-member method I2|_(dynamic it) → self::I2 { - lowered final self::I2 #this = it; +static inline-class-member method I2|_(dynamic it) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = it; return #this; } -static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 +static inline-class-member method I2|_#_#tearOff(dynamic it) → self::I2 /* = core::int */ return self::I2|_(it); -static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 { - lowered final self::I2 #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; +static inline-class-member method I2|(core::int x, {core::int? y = #C1}) → self::I2 /* = core::int */ { + lowered final self::I2 /* = core::int */ #this = x.{core::num::+}(let final core::int? #t2 = y in #t2 == null ?{core::int} 87 : #t2{core::int}){(core::num) → core::int}; return #this; } -static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 +static inline-class-member method I2|_#new#tearOff(core::int x, {core::int? y}) → self::I2 /* = core::int */ return self::I2|(x, y: y); -static inline-class-member method I2|m(lowered final self::I2 #this, core::String s, {core::int i = #C2}) → void {} -static inline-class-member method I2|get#m(lowered final self::I2 #this) → (core::String, {i: core::int}) → void +static inline-class-member method I2|m(lowered final self::I2 /* = core::int */ #this, core::String s, {core::int i = #C2}) → void {} +static inline-class-member method I2|get#m(lowered final self::I2 /* = core::int */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C2}) → void => self::I2|m(#this, s, i: i); static method main() → dynamic { self::expect(42, self::I|(0)); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.strong.expect index 9dbccd0d321..ae5e8922f68 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.strong.expect @@ -10,15 +10,15 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(dynamic field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(dynamic field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(dynamic field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(dynamic field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.strong.transformed.expect index 9dbccd0d321..ae5e8922f68 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.strong.transformed.expect @@ -10,15 +10,15 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(dynamic field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(dynamic field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(dynamic field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(dynamic field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.expect index 9dbccd0d321..ae5e8922f68 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.expect @@ -10,15 +10,15 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(dynamic field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(dynamic field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(dynamic field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(dynamic field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.modular.expect index 9dbccd0d321..ae5e8922f68 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.modular.expect @@ -10,15 +10,15 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(dynamic field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(dynamic field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(dynamic field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(dynamic field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.outline.expect index abc72f86443..6e06252723c 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.outline.expect @@ -10,11 +10,11 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(dynamic field) → self::Class1 +static inline-class-member method Class1|(dynamic field) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(dynamic field) → self::Class2 +static inline-class-member method Class2|(dynamic field) → self::Class2 /* = core::int */ ; -static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.transformed.expect index 9dbccd0d321..ae5e8922f68 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/constructors.dart.weak.transformed.expect @@ -10,15 +10,15 @@ extension type Class2(core::int field) { constructor • = self::Class2|; tearoff • = self::Class2|_#new#tearOff; } -static inline-class-member method Class1|(dynamic field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(dynamic field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(dynamic field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(dynamic field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.strong.expect index 7aeee30689d..cc10b407d29 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.strong.expect @@ -53,39 +53,39 @@ extension type F(core::int it) { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ { + lowered final self::B /* = core::int */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ { + lowered final self::C /* = core::int */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ { + lowered final self::D /* = core::int */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ { + lowered final self::E /* = core::int */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F { - lowered final self::F #this = it; +static inline-class-member method F|(dynamic it) → self::F /* = core::int */ { + lowered final self::F /* = core::int */ #this = it; return #this; } -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = core::int */ return self::F|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.strong.transformed.expect index 7aeee30689d..cc10b407d29 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.strong.transformed.expect @@ -53,39 +53,39 @@ extension type F(core::int it) { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ { + lowered final self::B /* = core::int */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ { + lowered final self::C /* = core::int */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ { + lowered final self::D /* = core::int */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ { + lowered final self::E /* = core::int */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F { - lowered final self::F #this = it; +static inline-class-member method F|(dynamic it) → self::F /* = core::int */ { + lowered final self::F /* = core::int */ #this = it; return #this; } -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = core::int */ return self::F|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.expect index 7aeee30689d..cc10b407d29 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.expect @@ -53,39 +53,39 @@ extension type F(core::int it) { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ { + lowered final self::B /* = core::int */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ { + lowered final self::C /* = core::int */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ { + lowered final self::D /* = core::int */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ { + lowered final self::E /* = core::int */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F { - lowered final self::F #this = it; +static inline-class-member method F|(dynamic it) → self::F /* = core::int */ { + lowered final self::F /* = core::int */ #this = it; return #this; } -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = core::int */ return self::F|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.modular.expect index 7aeee30689d..cc10b407d29 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.modular.expect @@ -53,39 +53,39 @@ extension type F(core::int it) { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ { + lowered final self::B /* = core::int */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ { + lowered final self::C /* = core::int */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ { + lowered final self::D /* = core::int */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ { + lowered final self::E /* = core::int */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F { - lowered final self::F #this = it; +static inline-class-member method F|(dynamic it) → self::F /* = core::int */ { + lowered final self::F /* = core::int */ #this = it; return #this; } -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = core::int */ return self::F|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.outline.expect index c58f1ae4078..d5245a84f56 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.outline.expect @@ -53,27 +53,27 @@ extension type F(core::int it) { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ ; -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ ; -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ ; -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ ; -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ ; -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F +static inline-class-member method F|(dynamic it) → self::F /* = core::int */ ; -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = core::int */ return self::F|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.transformed.expect index 7aeee30689d..cc10b407d29 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_extension_types.dart.weak.transformed.expect @@ -53,39 +53,39 @@ extension type F(core::int it) { constructor • = self::F|; tearoff • = self::F|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ { + lowered final self::B /* = core::int */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ { + lowered final self::C /* = core::int */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ { + lowered final self::D /* = core::int */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ { + lowered final self::E /* = core::int */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); -static inline-class-member method F|(dynamic it) → self::F { - lowered final self::F #this = it; +static inline-class-member method F|(dynamic it) → self::F /* = core::int */ { + lowered final self::F /* = core::int */ #this = it; return #this; } -static inline-class-member method F|_#new#tearOff(dynamic it) → self::F +static inline-class-member method F|_#new#tearOff(dynamic it) → self::F /* = core::int */ return self::F|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.strong.expect index 9d381d2fe93..f5a49655b5c 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.strong.expect @@ -194,23 +194,23 @@ library; import self as self; import "dart:core" as core; -typedef Alias9 = self::E9; -typedef Alias10 = self::E10; -typedef Alias11 = () → self::E11; -typedef Alias12 = (self::E12) → void; -typedef Alias13 = () → void; +typedef Alias9 = self::E9 /* = invalid-type */; +typedef Alias10 = self::E10 /* = invalid-type */; +typedef Alias11 = () → self::E11 /* = invalid-type */; +typedef Alias12 = (self::E12 /* = invalid-type */) → void; +typedef Alias13 = () → void; typedef Alias14 = core::int; typedef Alias15 = core::List; -typedef Alias16a = core::List; -typedef Alias16b = core::List; -typedef Alias18a = (self::E18) → void; +typedef Alias16a = core::List; +typedef Alias16b = core::List; +typedef Alias18a = (self::E18 /* = invalid-type */) → void; typedef Alias18b = (T%) → void; typedef Alias20 = invalid-type; typedef Alias21 = core::int; typedef Alias22a = invalid-type; typedef Alias22b = core::int; -typedef Alias23 = core::List; -typedef Alias24 = self::E24> = core::List; +typedef Alias23 = core::List; +typedef Alias24 /* = invalid-type */ = self::E24 /* = invalid-type */> = core::List; extension type E1(invalid-type it) { constructor • = self::E1|; tearoff • = self::E1|_#new#tearOff; @@ -303,7 +303,7 @@ extension type E18(invalid-type it) { constructor • = self::E18|; tearoff • = self::E18|_#new#tearOff; } -extension type E19a((self::E19b, self::E19b) it) { +extension type E19a((self::E19b /* = core::int */, self::E19b /* = core::int */) it) { constructor • = self::E19a|; tearoff • = self::E19a|_#new#tearOff; } @@ -331,235 +331,235 @@ extension type E24(invalid-type it) { constructor • = self::E24|; tearoff • = self::E24|_#new#tearOff; } -static inline-class-member method E1|(dynamic it) → self::E1 { - lowered final self::E1 #this = it; +static inline-class-member method E1|(dynamic it) → self::E1 /* = invalid-type */ { + lowered final self::E1 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 +static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 /* = invalid-type */ return self::E1|(it); -static inline-class-member method E2a|(dynamic it) → self::E2a { - lowered final self::E2a #this = it; +static inline-class-member method E2a|(dynamic it) → self::E2a /* = invalid-type */ { + lowered final self::E2a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a +static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a /* = invalid-type */ return self::E2a|(it); -static inline-class-member method E2b|(dynamic it) → self::E2b { - lowered final self::E2b #this = it; +static inline-class-member method E2b|(dynamic it) → self::E2b /* = invalid-type */ { + lowered final self::E2b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b +static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b /* = invalid-type */ return self::E2b|(it); -static inline-class-member method E3a|(dynamic it) → self::E3a { - lowered final self::E3a #this = it; +static inline-class-member method E3a|(dynamic it) → self::E3a /* = invalid-type */ { + lowered final self::E3a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a +static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a /* = invalid-type */ return self::E3a|(it); -static inline-class-member method E3b|(dynamic it) → self::E3b { - lowered final self::E3b #this = it; +static inline-class-member method E3b|(dynamic it) → self::E3b /* = invalid-type */ { + lowered final self::E3b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b +static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b /* = invalid-type */ return self::E3b|(it); -static inline-class-member method E3c|(dynamic it) → self::E3c { - lowered final self::E3c #this = it; +static inline-class-member method E3c|(dynamic it) → self::E3c /* = invalid-type */ { + lowered final self::E3c /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c +static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c /* = invalid-type */ return self::E3c|(it); -static inline-class-member method E4|(dynamic it) → self::E4 { - lowered final self::E4 #this = it; +static inline-class-member method E4|(dynamic it) → self::E4 /* = invalid-type */ { + lowered final self::E4 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 +static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 /* = invalid-type */ return self::E4|(it); -static inline-class-member method E5|(dynamic it) → self::E5 { - lowered final self::E5 #this = it; +static inline-class-member method E5|(dynamic it) → self::E5 /* = invalid-type */ { + lowered final self::E5 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 +static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 /* = invalid-type */ return self::E5|(it); -static inline-class-member method E6|(dynamic it) → self::E6 { - lowered final self::E6 #this = it; +static inline-class-member method E6|(dynamic it) → self::E6 /* = invalid-type */ { + lowered final self::E6 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 +static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 /* = invalid-type */ return self::E6|(it); -static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 +static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 /* = invalid-type */ return self::E7|(it); -static inline-class-member method E7|(dynamic it) → self::E7 { - lowered final self::E7 #this = it; +static inline-class-member method E7|(dynamic it) → self::E7 /* = invalid-type */ { + lowered final self::E7 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E8|(dynamic it) → self::E8 { - lowered final self::E8 #this = it; +static inline-class-member method E8|(dynamic it) → self::E8 /* = invalid-type */ { + lowered final self::E8 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 +static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 /* = invalid-type */ return self::E8|(it); -static inline-class-member method E9|(dynamic it) → self::E9 { - lowered final self::E9 #this = it; +static inline-class-member method E9|(dynamic it) → self::E9 /* = invalid-type */ { + lowered final self::E9 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 +static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 /* = invalid-type */ return self::E9|(it); -static inline-class-member method E10|(dynamic it) → self::E10 { - lowered final self::E10 #this = it; +static inline-class-member method E10|(dynamic it) → self::E10 /* = invalid-type */ { + lowered final self::E10 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 +static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 /* = invalid-type */ return self::E10|(it); -static inline-class-member method E11|(dynamic it) → self::E11 { - lowered final self::E11 #this = it; +static inline-class-member method E11|(dynamic it) → self::E11 /* = invalid-type */ { + lowered final self::E11 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 +static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 /* = invalid-type */ return self::E11|(it); -static inline-class-member method E12|(dynamic it) → self::E12 { - lowered final self::E12 #this = it; +static inline-class-member method E12|(dynamic it) → self::E12 /* = invalid-type */ { + lowered final self::E12 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 +static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 /* = invalid-type */ return self::E12|(it); -static inline-class-member method E13|(dynamic it) → self::E13 { - lowered final self::E13 #this = it; +static inline-class-member method E13|(dynamic it) → self::E13 /* = invalid-type */ { + lowered final self::E13 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 +static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 /* = invalid-type */ return self::E13|(it); -static inline-class-member method E14|(dynamic it) → self::E14 { - lowered final self::E14 #this = it; +static inline-class-member method E14|(dynamic it) → self::E14 /* = core::int */ { + lowered final self::E14 /* = core::int */ #this = it; return #this; } -static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 +static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 /* = core::int */ return self::E14|(it); -static inline-class-member method E15a|(dynamic it) → self::E15a { - lowered final self::E15a #this = it; +static inline-class-member method E15a|(dynamic it) → self::E15a /* = invalid-type */ { + lowered final self::E15a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a +static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a /* = invalid-type */ return self::E15a|(it); -static inline-class-member method E15b|(dynamic it) → self::E15b { - lowered final self::E15b #this = it; +static inline-class-member method E15b|(dynamic it) → self::E15b /* = invalid-type */ { + lowered final self::E15b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b +static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b /* = invalid-type */ return self::E15b|(it); -static inline-class-member method E16a|(dynamic it) → self::E16a { - lowered final self::E16a #this = it; +static inline-class-member method E16a|(dynamic it) → self::E16a /* = invalid-type */ { + lowered final self::E16a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a +static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a /* = invalid-type */ return self::E16a|(it); -static inline-class-member method E16b|(dynamic it) → self::E16b { - lowered final self::E16b #this = it; +static inline-class-member method E16b|(dynamic it) → self::E16b /* = invalid-type */ { + lowered final self::E16b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b +static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b /* = invalid-type */ return self::E16b|(it); -static inline-class-member method E17|(dynamic it) → self::E17 { - lowered final self::E17 #this = it; +static inline-class-member method E17|(dynamic it) → self::E17 /* = invalid-type */ { + lowered final self::E17 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 +static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 /* = invalid-type */ return self::E17|(it); -static inline-class-member method E18|(dynamic it) → self::E18 { - lowered final self::E18 #this = it; +static inline-class-member method E18|(dynamic it) → self::E18 /* = invalid-type */ { + lowered final self::E18 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 +static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 /* = invalid-type */ return self::E18|(it); -static inline-class-member method E19a|(dynamic it) → self::E19a { - lowered final self::E19a #this = it; +static inline-class-member method E19a|(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ { + lowered final self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ #this = it; return #this; } -static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a +static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ return self::E19a|(it); -static inline-class-member method E19b|(dynamic it) → self::E19b { - lowered final self::E19b #this = it; +static inline-class-member method E19b|(dynamic it) → self::E19b /* = core::int */ { + lowered final self::E19b /* = core::int */ #this = it; return #this; } -static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b +static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b /* = core::int */ return self::E19b|(it); -static inline-class-member method E20|(dynamic it) → self::E20 { - lowered final self::E20 #this = it; +static inline-class-member method E20|(dynamic it) → self::E20 /* = invalid-type */ { + lowered final self::E20 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 +static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 /* = invalid-type */ return self::E20|(it); -static inline-class-member method E21|(dynamic it) → self::E21 { - lowered final self::E21 #this = it; +static inline-class-member method E21|(dynamic it) → self::E21 /* = invalid-type */ { + lowered final self::E21 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 +static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 /* = invalid-type */ return self::E21|(it); -static inline-class-member method E22|(dynamic it) → self::E22 { - lowered final self::E22 #this = it; +static inline-class-member method E22|(dynamic it) → self::E22 /* = invalid-type */ { + lowered final self::E22 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 +static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 /* = invalid-type */ return self::E22|(it); -static inline-class-member method E23|(dynamic it) → self::E23 { - lowered final self::E23 #this = it; +static inline-class-member method E23|(dynamic it) → self::E23 /* = invalid-type */ { + lowered final self::E23 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 +static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 /* = invalid-type */ return self::E23|(it); -static inline-class-member method E24|(dynamic it) → self::E24 { - lowered final self::E24 #this = it; +static inline-class-member method E24|(dynamic it) → self::E24 /* = invalid-type */ { + lowered final self::E24 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 +static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 /* = invalid-type */ return self::E24|(it); static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/integers_patch.dart */ _#Alias14#fromEnvironment#tearOff(core::String name, {core::int defaultValue = #C1}) → core::int return core::int::fromEnvironment(name, defaultValue: defaultValue); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b fill, {core::bool growable = #C2}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({core::bool growable = #C2}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b generator, {core::bool growable = #C3}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a fill, {core::bool growable = #C2}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({core::bool growable = #C2}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a generator, {core::bool growable = #C3}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b /* = invalid-type */ fill, {core::bool growable = #C2}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({core::bool growable = #C2}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b /* = invalid-type */ generator, {core::bool growable = #C3}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a /* = invalid-type */ fill, {core::bool growable = #C2}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({core::bool growable = #C2}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a /* = invalid-type */ generator, {core::bool growable = #C3}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({core::bool growable = #C2}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff = self::E24>(core::int length, self::_#Alias24#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, self::_#Alias24#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff = self::E24>({core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>({core::bool growable = #C2}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff = self::E24>(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff = self::E24>(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff = self::E24>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff = self::E24>(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements) → core::List return core::List::unmodifiable(elements); constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.strong.transformed.expect index 9d381d2fe93..f5a49655b5c 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.strong.transformed.expect @@ -194,23 +194,23 @@ library; import self as self; import "dart:core" as core; -typedef Alias9 = self::E9; -typedef Alias10 = self::E10; -typedef Alias11 = () → self::E11; -typedef Alias12 = (self::E12) → void; -typedef Alias13 = () → void; +typedef Alias9 = self::E9 /* = invalid-type */; +typedef Alias10 = self::E10 /* = invalid-type */; +typedef Alias11 = () → self::E11 /* = invalid-type */; +typedef Alias12 = (self::E12 /* = invalid-type */) → void; +typedef Alias13 = () → void; typedef Alias14 = core::int; typedef Alias15 = core::List; -typedef Alias16a = core::List; -typedef Alias16b = core::List; -typedef Alias18a = (self::E18) → void; +typedef Alias16a = core::List; +typedef Alias16b = core::List; +typedef Alias18a = (self::E18 /* = invalid-type */) → void; typedef Alias18b = (T%) → void; typedef Alias20 = invalid-type; typedef Alias21 = core::int; typedef Alias22a = invalid-type; typedef Alias22b = core::int; -typedef Alias23 = core::List; -typedef Alias24 = self::E24> = core::List; +typedef Alias23 = core::List; +typedef Alias24 /* = invalid-type */ = self::E24 /* = invalid-type */> = core::List; extension type E1(invalid-type it) { constructor • = self::E1|; tearoff • = self::E1|_#new#tearOff; @@ -303,7 +303,7 @@ extension type E18(invalid-type it) { constructor • = self::E18|; tearoff • = self::E18|_#new#tearOff; } -extension type E19a((self::E19b, self::E19b) it) { +extension type E19a((self::E19b /* = core::int */, self::E19b /* = core::int */) it) { constructor • = self::E19a|; tearoff • = self::E19a|_#new#tearOff; } @@ -331,235 +331,235 @@ extension type E24(invalid-type it) { constructor • = self::E24|; tearoff • = self::E24|_#new#tearOff; } -static inline-class-member method E1|(dynamic it) → self::E1 { - lowered final self::E1 #this = it; +static inline-class-member method E1|(dynamic it) → self::E1 /* = invalid-type */ { + lowered final self::E1 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 +static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 /* = invalid-type */ return self::E1|(it); -static inline-class-member method E2a|(dynamic it) → self::E2a { - lowered final self::E2a #this = it; +static inline-class-member method E2a|(dynamic it) → self::E2a /* = invalid-type */ { + lowered final self::E2a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a +static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a /* = invalid-type */ return self::E2a|(it); -static inline-class-member method E2b|(dynamic it) → self::E2b { - lowered final self::E2b #this = it; +static inline-class-member method E2b|(dynamic it) → self::E2b /* = invalid-type */ { + lowered final self::E2b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b +static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b /* = invalid-type */ return self::E2b|(it); -static inline-class-member method E3a|(dynamic it) → self::E3a { - lowered final self::E3a #this = it; +static inline-class-member method E3a|(dynamic it) → self::E3a /* = invalid-type */ { + lowered final self::E3a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a +static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a /* = invalid-type */ return self::E3a|(it); -static inline-class-member method E3b|(dynamic it) → self::E3b { - lowered final self::E3b #this = it; +static inline-class-member method E3b|(dynamic it) → self::E3b /* = invalid-type */ { + lowered final self::E3b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b +static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b /* = invalid-type */ return self::E3b|(it); -static inline-class-member method E3c|(dynamic it) → self::E3c { - lowered final self::E3c #this = it; +static inline-class-member method E3c|(dynamic it) → self::E3c /* = invalid-type */ { + lowered final self::E3c /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c +static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c /* = invalid-type */ return self::E3c|(it); -static inline-class-member method E4|(dynamic it) → self::E4 { - lowered final self::E4 #this = it; +static inline-class-member method E4|(dynamic it) → self::E4 /* = invalid-type */ { + lowered final self::E4 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 +static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 /* = invalid-type */ return self::E4|(it); -static inline-class-member method E5|(dynamic it) → self::E5 { - lowered final self::E5 #this = it; +static inline-class-member method E5|(dynamic it) → self::E5 /* = invalid-type */ { + lowered final self::E5 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 +static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 /* = invalid-type */ return self::E5|(it); -static inline-class-member method E6|(dynamic it) → self::E6 { - lowered final self::E6 #this = it; +static inline-class-member method E6|(dynamic it) → self::E6 /* = invalid-type */ { + lowered final self::E6 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 +static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 /* = invalid-type */ return self::E6|(it); -static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 +static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 /* = invalid-type */ return self::E7|(it); -static inline-class-member method E7|(dynamic it) → self::E7 { - lowered final self::E7 #this = it; +static inline-class-member method E7|(dynamic it) → self::E7 /* = invalid-type */ { + lowered final self::E7 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E8|(dynamic it) → self::E8 { - lowered final self::E8 #this = it; +static inline-class-member method E8|(dynamic it) → self::E8 /* = invalid-type */ { + lowered final self::E8 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 +static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 /* = invalid-type */ return self::E8|(it); -static inline-class-member method E9|(dynamic it) → self::E9 { - lowered final self::E9 #this = it; +static inline-class-member method E9|(dynamic it) → self::E9 /* = invalid-type */ { + lowered final self::E9 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 +static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 /* = invalid-type */ return self::E9|(it); -static inline-class-member method E10|(dynamic it) → self::E10 { - lowered final self::E10 #this = it; +static inline-class-member method E10|(dynamic it) → self::E10 /* = invalid-type */ { + lowered final self::E10 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 +static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 /* = invalid-type */ return self::E10|(it); -static inline-class-member method E11|(dynamic it) → self::E11 { - lowered final self::E11 #this = it; +static inline-class-member method E11|(dynamic it) → self::E11 /* = invalid-type */ { + lowered final self::E11 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 +static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 /* = invalid-type */ return self::E11|(it); -static inline-class-member method E12|(dynamic it) → self::E12 { - lowered final self::E12 #this = it; +static inline-class-member method E12|(dynamic it) → self::E12 /* = invalid-type */ { + lowered final self::E12 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 +static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 /* = invalid-type */ return self::E12|(it); -static inline-class-member method E13|(dynamic it) → self::E13 { - lowered final self::E13 #this = it; +static inline-class-member method E13|(dynamic it) → self::E13 /* = invalid-type */ { + lowered final self::E13 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 +static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 /* = invalid-type */ return self::E13|(it); -static inline-class-member method E14|(dynamic it) → self::E14 { - lowered final self::E14 #this = it; +static inline-class-member method E14|(dynamic it) → self::E14 /* = core::int */ { + lowered final self::E14 /* = core::int */ #this = it; return #this; } -static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 +static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 /* = core::int */ return self::E14|(it); -static inline-class-member method E15a|(dynamic it) → self::E15a { - lowered final self::E15a #this = it; +static inline-class-member method E15a|(dynamic it) → self::E15a /* = invalid-type */ { + lowered final self::E15a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a +static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a /* = invalid-type */ return self::E15a|(it); -static inline-class-member method E15b|(dynamic it) → self::E15b { - lowered final self::E15b #this = it; +static inline-class-member method E15b|(dynamic it) → self::E15b /* = invalid-type */ { + lowered final self::E15b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b +static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b /* = invalid-type */ return self::E15b|(it); -static inline-class-member method E16a|(dynamic it) → self::E16a { - lowered final self::E16a #this = it; +static inline-class-member method E16a|(dynamic it) → self::E16a /* = invalid-type */ { + lowered final self::E16a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a +static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a /* = invalid-type */ return self::E16a|(it); -static inline-class-member method E16b|(dynamic it) → self::E16b { - lowered final self::E16b #this = it; +static inline-class-member method E16b|(dynamic it) → self::E16b /* = invalid-type */ { + lowered final self::E16b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b +static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b /* = invalid-type */ return self::E16b|(it); -static inline-class-member method E17|(dynamic it) → self::E17 { - lowered final self::E17 #this = it; +static inline-class-member method E17|(dynamic it) → self::E17 /* = invalid-type */ { + lowered final self::E17 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 +static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 /* = invalid-type */ return self::E17|(it); -static inline-class-member method E18|(dynamic it) → self::E18 { - lowered final self::E18 #this = it; +static inline-class-member method E18|(dynamic it) → self::E18 /* = invalid-type */ { + lowered final self::E18 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 +static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 /* = invalid-type */ return self::E18|(it); -static inline-class-member method E19a|(dynamic it) → self::E19a { - lowered final self::E19a #this = it; +static inline-class-member method E19a|(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ { + lowered final self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ #this = it; return #this; } -static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a +static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ return self::E19a|(it); -static inline-class-member method E19b|(dynamic it) → self::E19b { - lowered final self::E19b #this = it; +static inline-class-member method E19b|(dynamic it) → self::E19b /* = core::int */ { + lowered final self::E19b /* = core::int */ #this = it; return #this; } -static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b +static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b /* = core::int */ return self::E19b|(it); -static inline-class-member method E20|(dynamic it) → self::E20 { - lowered final self::E20 #this = it; +static inline-class-member method E20|(dynamic it) → self::E20 /* = invalid-type */ { + lowered final self::E20 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 +static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 /* = invalid-type */ return self::E20|(it); -static inline-class-member method E21|(dynamic it) → self::E21 { - lowered final self::E21 #this = it; +static inline-class-member method E21|(dynamic it) → self::E21 /* = invalid-type */ { + lowered final self::E21 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 +static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 /* = invalid-type */ return self::E21|(it); -static inline-class-member method E22|(dynamic it) → self::E22 { - lowered final self::E22 #this = it; +static inline-class-member method E22|(dynamic it) → self::E22 /* = invalid-type */ { + lowered final self::E22 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 +static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 /* = invalid-type */ return self::E22|(it); -static inline-class-member method E23|(dynamic it) → self::E23 { - lowered final self::E23 #this = it; +static inline-class-member method E23|(dynamic it) → self::E23 /* = invalid-type */ { + lowered final self::E23 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 +static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 /* = invalid-type */ return self::E23|(it); -static inline-class-member method E24|(dynamic it) → self::E24 { - lowered final self::E24 #this = it; +static inline-class-member method E24|(dynamic it) → self::E24 /* = invalid-type */ { + lowered final self::E24 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 +static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 /* = invalid-type */ return self::E24|(it); static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/integers_patch.dart */ _#Alias14#fromEnvironment#tearOff(core::String name, {core::int defaultValue = #C1}) → core::int return core::int::fromEnvironment(name, defaultValue: defaultValue); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b fill, {core::bool growable = #C2}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({core::bool growable = #C2}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b generator, {core::bool growable = #C3}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a fill, {core::bool growable = #C2}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({core::bool growable = #C2}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a generator, {core::bool growable = #C3}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b /* = invalid-type */ fill, {core::bool growable = #C2}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({core::bool growable = #C2}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b /* = invalid-type */ generator, {core::bool growable = #C3}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a /* = invalid-type */ fill, {core::bool growable = #C2}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({core::bool growable = #C2}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a /* = invalid-type */ generator, {core::bool growable = #C3}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({core::bool growable = #C2}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff = self::E24>(core::int length, self::_#Alias24#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, self::_#Alias24#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff = self::E24>({core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>({core::bool growable = #C2}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff = self::E24>(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff = self::E24>(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff = self::E24>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff = self::E24>(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements) → core::List return core::List::unmodifiable(elements); constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.expect index 9d381d2fe93..f5a49655b5c 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.expect @@ -194,23 +194,23 @@ library; import self as self; import "dart:core" as core; -typedef Alias9 = self::E9; -typedef Alias10 = self::E10; -typedef Alias11 = () → self::E11; -typedef Alias12 = (self::E12) → void; -typedef Alias13 = () → void; +typedef Alias9 = self::E9 /* = invalid-type */; +typedef Alias10 = self::E10 /* = invalid-type */; +typedef Alias11 = () → self::E11 /* = invalid-type */; +typedef Alias12 = (self::E12 /* = invalid-type */) → void; +typedef Alias13 = () → void; typedef Alias14 = core::int; typedef Alias15 = core::List; -typedef Alias16a = core::List; -typedef Alias16b = core::List; -typedef Alias18a = (self::E18) → void; +typedef Alias16a = core::List; +typedef Alias16b = core::List; +typedef Alias18a = (self::E18 /* = invalid-type */) → void; typedef Alias18b = (T%) → void; typedef Alias20 = invalid-type; typedef Alias21 = core::int; typedef Alias22a = invalid-type; typedef Alias22b = core::int; -typedef Alias23 = core::List; -typedef Alias24 = self::E24> = core::List; +typedef Alias23 = core::List; +typedef Alias24 /* = invalid-type */ = self::E24 /* = invalid-type */> = core::List; extension type E1(invalid-type it) { constructor • = self::E1|; tearoff • = self::E1|_#new#tearOff; @@ -303,7 +303,7 @@ extension type E18(invalid-type it) { constructor • = self::E18|; tearoff • = self::E18|_#new#tearOff; } -extension type E19a((self::E19b, self::E19b) it) { +extension type E19a((self::E19b /* = core::int */, self::E19b /* = core::int */) it) { constructor • = self::E19a|; tearoff • = self::E19a|_#new#tearOff; } @@ -331,235 +331,235 @@ extension type E24(invalid-type it) { constructor • = self::E24|; tearoff • = self::E24|_#new#tearOff; } -static inline-class-member method E1|(dynamic it) → self::E1 { - lowered final self::E1 #this = it; +static inline-class-member method E1|(dynamic it) → self::E1 /* = invalid-type */ { + lowered final self::E1 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 +static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 /* = invalid-type */ return self::E1|(it); -static inline-class-member method E2a|(dynamic it) → self::E2a { - lowered final self::E2a #this = it; +static inline-class-member method E2a|(dynamic it) → self::E2a /* = invalid-type */ { + lowered final self::E2a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a +static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a /* = invalid-type */ return self::E2a|(it); -static inline-class-member method E2b|(dynamic it) → self::E2b { - lowered final self::E2b #this = it; +static inline-class-member method E2b|(dynamic it) → self::E2b /* = invalid-type */ { + lowered final self::E2b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b +static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b /* = invalid-type */ return self::E2b|(it); -static inline-class-member method E3a|(dynamic it) → self::E3a { - lowered final self::E3a #this = it; +static inline-class-member method E3a|(dynamic it) → self::E3a /* = invalid-type */ { + lowered final self::E3a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a +static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a /* = invalid-type */ return self::E3a|(it); -static inline-class-member method E3b|(dynamic it) → self::E3b { - lowered final self::E3b #this = it; +static inline-class-member method E3b|(dynamic it) → self::E3b /* = invalid-type */ { + lowered final self::E3b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b +static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b /* = invalid-type */ return self::E3b|(it); -static inline-class-member method E3c|(dynamic it) → self::E3c { - lowered final self::E3c #this = it; +static inline-class-member method E3c|(dynamic it) → self::E3c /* = invalid-type */ { + lowered final self::E3c /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c +static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c /* = invalid-type */ return self::E3c|(it); -static inline-class-member method E4|(dynamic it) → self::E4 { - lowered final self::E4 #this = it; +static inline-class-member method E4|(dynamic it) → self::E4 /* = invalid-type */ { + lowered final self::E4 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 +static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 /* = invalid-type */ return self::E4|(it); -static inline-class-member method E5|(dynamic it) → self::E5 { - lowered final self::E5 #this = it; +static inline-class-member method E5|(dynamic it) → self::E5 /* = invalid-type */ { + lowered final self::E5 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 +static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 /* = invalid-type */ return self::E5|(it); -static inline-class-member method E6|(dynamic it) → self::E6 { - lowered final self::E6 #this = it; +static inline-class-member method E6|(dynamic it) → self::E6 /* = invalid-type */ { + lowered final self::E6 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 +static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 /* = invalid-type */ return self::E6|(it); -static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 +static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 /* = invalid-type */ return self::E7|(it); -static inline-class-member method E7|(dynamic it) → self::E7 { - lowered final self::E7 #this = it; +static inline-class-member method E7|(dynamic it) → self::E7 /* = invalid-type */ { + lowered final self::E7 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E8|(dynamic it) → self::E8 { - lowered final self::E8 #this = it; +static inline-class-member method E8|(dynamic it) → self::E8 /* = invalid-type */ { + lowered final self::E8 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 +static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 /* = invalid-type */ return self::E8|(it); -static inline-class-member method E9|(dynamic it) → self::E9 { - lowered final self::E9 #this = it; +static inline-class-member method E9|(dynamic it) → self::E9 /* = invalid-type */ { + lowered final self::E9 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 +static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 /* = invalid-type */ return self::E9|(it); -static inline-class-member method E10|(dynamic it) → self::E10 { - lowered final self::E10 #this = it; +static inline-class-member method E10|(dynamic it) → self::E10 /* = invalid-type */ { + lowered final self::E10 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 +static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 /* = invalid-type */ return self::E10|(it); -static inline-class-member method E11|(dynamic it) → self::E11 { - lowered final self::E11 #this = it; +static inline-class-member method E11|(dynamic it) → self::E11 /* = invalid-type */ { + lowered final self::E11 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 +static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 /* = invalid-type */ return self::E11|(it); -static inline-class-member method E12|(dynamic it) → self::E12 { - lowered final self::E12 #this = it; +static inline-class-member method E12|(dynamic it) → self::E12 /* = invalid-type */ { + lowered final self::E12 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 +static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 /* = invalid-type */ return self::E12|(it); -static inline-class-member method E13|(dynamic it) → self::E13 { - lowered final self::E13 #this = it; +static inline-class-member method E13|(dynamic it) → self::E13 /* = invalid-type */ { + lowered final self::E13 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 +static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 /* = invalid-type */ return self::E13|(it); -static inline-class-member method E14|(dynamic it) → self::E14 { - lowered final self::E14 #this = it; +static inline-class-member method E14|(dynamic it) → self::E14 /* = core::int */ { + lowered final self::E14 /* = core::int */ #this = it; return #this; } -static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 +static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 /* = core::int */ return self::E14|(it); -static inline-class-member method E15a|(dynamic it) → self::E15a { - lowered final self::E15a #this = it; +static inline-class-member method E15a|(dynamic it) → self::E15a /* = invalid-type */ { + lowered final self::E15a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a +static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a /* = invalid-type */ return self::E15a|(it); -static inline-class-member method E15b|(dynamic it) → self::E15b { - lowered final self::E15b #this = it; +static inline-class-member method E15b|(dynamic it) → self::E15b /* = invalid-type */ { + lowered final self::E15b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b +static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b /* = invalid-type */ return self::E15b|(it); -static inline-class-member method E16a|(dynamic it) → self::E16a { - lowered final self::E16a #this = it; +static inline-class-member method E16a|(dynamic it) → self::E16a /* = invalid-type */ { + lowered final self::E16a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a +static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a /* = invalid-type */ return self::E16a|(it); -static inline-class-member method E16b|(dynamic it) → self::E16b { - lowered final self::E16b #this = it; +static inline-class-member method E16b|(dynamic it) → self::E16b /* = invalid-type */ { + lowered final self::E16b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b +static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b /* = invalid-type */ return self::E16b|(it); -static inline-class-member method E17|(dynamic it) → self::E17 { - lowered final self::E17 #this = it; +static inline-class-member method E17|(dynamic it) → self::E17 /* = invalid-type */ { + lowered final self::E17 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 +static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 /* = invalid-type */ return self::E17|(it); -static inline-class-member method E18|(dynamic it) → self::E18 { - lowered final self::E18 #this = it; +static inline-class-member method E18|(dynamic it) → self::E18 /* = invalid-type */ { + lowered final self::E18 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 +static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 /* = invalid-type */ return self::E18|(it); -static inline-class-member method E19a|(dynamic it) → self::E19a { - lowered final self::E19a #this = it; +static inline-class-member method E19a|(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ { + lowered final self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ #this = it; return #this; } -static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a +static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ return self::E19a|(it); -static inline-class-member method E19b|(dynamic it) → self::E19b { - lowered final self::E19b #this = it; +static inline-class-member method E19b|(dynamic it) → self::E19b /* = core::int */ { + lowered final self::E19b /* = core::int */ #this = it; return #this; } -static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b +static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b /* = core::int */ return self::E19b|(it); -static inline-class-member method E20|(dynamic it) → self::E20 { - lowered final self::E20 #this = it; +static inline-class-member method E20|(dynamic it) → self::E20 /* = invalid-type */ { + lowered final self::E20 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 +static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 /* = invalid-type */ return self::E20|(it); -static inline-class-member method E21|(dynamic it) → self::E21 { - lowered final self::E21 #this = it; +static inline-class-member method E21|(dynamic it) → self::E21 /* = invalid-type */ { + lowered final self::E21 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 +static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 /* = invalid-type */ return self::E21|(it); -static inline-class-member method E22|(dynamic it) → self::E22 { - lowered final self::E22 #this = it; +static inline-class-member method E22|(dynamic it) → self::E22 /* = invalid-type */ { + lowered final self::E22 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 +static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 /* = invalid-type */ return self::E22|(it); -static inline-class-member method E23|(dynamic it) → self::E23 { - lowered final self::E23 #this = it; +static inline-class-member method E23|(dynamic it) → self::E23 /* = invalid-type */ { + lowered final self::E23 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 +static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 /* = invalid-type */ return self::E23|(it); -static inline-class-member method E24|(dynamic it) → self::E24 { - lowered final self::E24 #this = it; +static inline-class-member method E24|(dynamic it) → self::E24 /* = invalid-type */ { + lowered final self::E24 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 +static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 /* = invalid-type */ return self::E24|(it); static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/integers_patch.dart */ _#Alias14#fromEnvironment#tearOff(core::String name, {core::int defaultValue = #C1}) → core::int return core::int::fromEnvironment(name, defaultValue: defaultValue); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b fill, {core::bool growable = #C2}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({core::bool growable = #C2}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b generator, {core::bool growable = #C3}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a fill, {core::bool growable = #C2}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({core::bool growable = #C2}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a generator, {core::bool growable = #C3}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b /* = invalid-type */ fill, {core::bool growable = #C2}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({core::bool growable = #C2}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b /* = invalid-type */ generator, {core::bool growable = #C3}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a /* = invalid-type */ fill, {core::bool growable = #C2}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({core::bool growable = #C2}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a /* = invalid-type */ generator, {core::bool growable = #C3}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({core::bool growable = #C2}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff = self::E24>(core::int length, self::_#Alias24#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, self::_#Alias24#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff = self::E24>({core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>({core::bool growable = #C2}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff = self::E24>(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff = self::E24>(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff = self::E24>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff = self::E24>(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements) → core::List return core::List::unmodifiable(elements); constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.modular.expect index 9d381d2fe93..f5a49655b5c 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.modular.expect @@ -194,23 +194,23 @@ library; import self as self; import "dart:core" as core; -typedef Alias9 = self::E9; -typedef Alias10 = self::E10; -typedef Alias11 = () → self::E11; -typedef Alias12 = (self::E12) → void; -typedef Alias13 = () → void; +typedef Alias9 = self::E9 /* = invalid-type */; +typedef Alias10 = self::E10 /* = invalid-type */; +typedef Alias11 = () → self::E11 /* = invalid-type */; +typedef Alias12 = (self::E12 /* = invalid-type */) → void; +typedef Alias13 = () → void; typedef Alias14 = core::int; typedef Alias15 = core::List; -typedef Alias16a = core::List; -typedef Alias16b = core::List; -typedef Alias18a = (self::E18) → void; +typedef Alias16a = core::List; +typedef Alias16b = core::List; +typedef Alias18a = (self::E18 /* = invalid-type */) → void; typedef Alias18b = (T%) → void; typedef Alias20 = invalid-type; typedef Alias21 = core::int; typedef Alias22a = invalid-type; typedef Alias22b = core::int; -typedef Alias23 = core::List; -typedef Alias24 = self::E24> = core::List; +typedef Alias23 = core::List; +typedef Alias24 /* = invalid-type */ = self::E24 /* = invalid-type */> = core::List; extension type E1(invalid-type it) { constructor • = self::E1|; tearoff • = self::E1|_#new#tearOff; @@ -303,7 +303,7 @@ extension type E18(invalid-type it) { constructor • = self::E18|; tearoff • = self::E18|_#new#tearOff; } -extension type E19a((self::E19b, self::E19b) it) { +extension type E19a((self::E19b /* = core::int */, self::E19b /* = core::int */) it) { constructor • = self::E19a|; tearoff • = self::E19a|_#new#tearOff; } @@ -331,235 +331,235 @@ extension type E24(invalid-type it) { constructor • = self::E24|; tearoff • = self::E24|_#new#tearOff; } -static inline-class-member method E1|(dynamic it) → self::E1 { - lowered final self::E1 #this = it; +static inline-class-member method E1|(dynamic it) → self::E1 /* = invalid-type */ { + lowered final self::E1 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 +static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 /* = invalid-type */ return self::E1|(it); -static inline-class-member method E2a|(dynamic it) → self::E2a { - lowered final self::E2a #this = it; +static inline-class-member method E2a|(dynamic it) → self::E2a /* = invalid-type */ { + lowered final self::E2a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a +static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a /* = invalid-type */ return self::E2a|(it); -static inline-class-member method E2b|(dynamic it) → self::E2b { - lowered final self::E2b #this = it; +static inline-class-member method E2b|(dynamic it) → self::E2b /* = invalid-type */ { + lowered final self::E2b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b +static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b /* = invalid-type */ return self::E2b|(it); -static inline-class-member method E3a|(dynamic it) → self::E3a { - lowered final self::E3a #this = it; +static inline-class-member method E3a|(dynamic it) → self::E3a /* = invalid-type */ { + lowered final self::E3a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a +static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a /* = invalid-type */ return self::E3a|(it); -static inline-class-member method E3b|(dynamic it) → self::E3b { - lowered final self::E3b #this = it; +static inline-class-member method E3b|(dynamic it) → self::E3b /* = invalid-type */ { + lowered final self::E3b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b +static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b /* = invalid-type */ return self::E3b|(it); -static inline-class-member method E3c|(dynamic it) → self::E3c { - lowered final self::E3c #this = it; +static inline-class-member method E3c|(dynamic it) → self::E3c /* = invalid-type */ { + lowered final self::E3c /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c +static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c /* = invalid-type */ return self::E3c|(it); -static inline-class-member method E4|(dynamic it) → self::E4 { - lowered final self::E4 #this = it; +static inline-class-member method E4|(dynamic it) → self::E4 /* = invalid-type */ { + lowered final self::E4 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 +static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 /* = invalid-type */ return self::E4|(it); -static inline-class-member method E5|(dynamic it) → self::E5 { - lowered final self::E5 #this = it; +static inline-class-member method E5|(dynamic it) → self::E5 /* = invalid-type */ { + lowered final self::E5 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 +static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 /* = invalid-type */ return self::E5|(it); -static inline-class-member method E6|(dynamic it) → self::E6 { - lowered final self::E6 #this = it; +static inline-class-member method E6|(dynamic it) → self::E6 /* = invalid-type */ { + lowered final self::E6 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 +static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 /* = invalid-type */ return self::E6|(it); -static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 +static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 /* = invalid-type */ return self::E7|(it); -static inline-class-member method E7|(dynamic it) → self::E7 { - lowered final self::E7 #this = it; +static inline-class-member method E7|(dynamic it) → self::E7 /* = invalid-type */ { + lowered final self::E7 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E8|(dynamic it) → self::E8 { - lowered final self::E8 #this = it; +static inline-class-member method E8|(dynamic it) → self::E8 /* = invalid-type */ { + lowered final self::E8 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 +static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 /* = invalid-type */ return self::E8|(it); -static inline-class-member method E9|(dynamic it) → self::E9 { - lowered final self::E9 #this = it; +static inline-class-member method E9|(dynamic it) → self::E9 /* = invalid-type */ { + lowered final self::E9 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 +static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 /* = invalid-type */ return self::E9|(it); -static inline-class-member method E10|(dynamic it) → self::E10 { - lowered final self::E10 #this = it; +static inline-class-member method E10|(dynamic it) → self::E10 /* = invalid-type */ { + lowered final self::E10 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 +static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 /* = invalid-type */ return self::E10|(it); -static inline-class-member method E11|(dynamic it) → self::E11 { - lowered final self::E11 #this = it; +static inline-class-member method E11|(dynamic it) → self::E11 /* = invalid-type */ { + lowered final self::E11 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 +static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 /* = invalid-type */ return self::E11|(it); -static inline-class-member method E12|(dynamic it) → self::E12 { - lowered final self::E12 #this = it; +static inline-class-member method E12|(dynamic it) → self::E12 /* = invalid-type */ { + lowered final self::E12 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 +static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 /* = invalid-type */ return self::E12|(it); -static inline-class-member method E13|(dynamic it) → self::E13 { - lowered final self::E13 #this = it; +static inline-class-member method E13|(dynamic it) → self::E13 /* = invalid-type */ { + lowered final self::E13 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 +static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 /* = invalid-type */ return self::E13|(it); -static inline-class-member method E14|(dynamic it) → self::E14 { - lowered final self::E14 #this = it; +static inline-class-member method E14|(dynamic it) → self::E14 /* = core::int */ { + lowered final self::E14 /* = core::int */ #this = it; return #this; } -static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 +static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 /* = core::int */ return self::E14|(it); -static inline-class-member method E15a|(dynamic it) → self::E15a { - lowered final self::E15a #this = it; +static inline-class-member method E15a|(dynamic it) → self::E15a /* = invalid-type */ { + lowered final self::E15a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a +static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a /* = invalid-type */ return self::E15a|(it); -static inline-class-member method E15b|(dynamic it) → self::E15b { - lowered final self::E15b #this = it; +static inline-class-member method E15b|(dynamic it) → self::E15b /* = invalid-type */ { + lowered final self::E15b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b +static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b /* = invalid-type */ return self::E15b|(it); -static inline-class-member method E16a|(dynamic it) → self::E16a { - lowered final self::E16a #this = it; +static inline-class-member method E16a|(dynamic it) → self::E16a /* = invalid-type */ { + lowered final self::E16a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a +static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a /* = invalid-type */ return self::E16a|(it); -static inline-class-member method E16b|(dynamic it) → self::E16b { - lowered final self::E16b #this = it; +static inline-class-member method E16b|(dynamic it) → self::E16b /* = invalid-type */ { + lowered final self::E16b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b +static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b /* = invalid-type */ return self::E16b|(it); -static inline-class-member method E17|(dynamic it) → self::E17 { - lowered final self::E17 #this = it; +static inline-class-member method E17|(dynamic it) → self::E17 /* = invalid-type */ { + lowered final self::E17 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 +static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 /* = invalid-type */ return self::E17|(it); -static inline-class-member method E18|(dynamic it) → self::E18 { - lowered final self::E18 #this = it; +static inline-class-member method E18|(dynamic it) → self::E18 /* = invalid-type */ { + lowered final self::E18 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 +static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 /* = invalid-type */ return self::E18|(it); -static inline-class-member method E19a|(dynamic it) → self::E19a { - lowered final self::E19a #this = it; +static inline-class-member method E19a|(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ { + lowered final self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ #this = it; return #this; } -static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a +static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ return self::E19a|(it); -static inline-class-member method E19b|(dynamic it) → self::E19b { - lowered final self::E19b #this = it; +static inline-class-member method E19b|(dynamic it) → self::E19b /* = core::int */ { + lowered final self::E19b /* = core::int */ #this = it; return #this; } -static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b +static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b /* = core::int */ return self::E19b|(it); -static inline-class-member method E20|(dynamic it) → self::E20 { - lowered final self::E20 #this = it; +static inline-class-member method E20|(dynamic it) → self::E20 /* = invalid-type */ { + lowered final self::E20 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 +static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 /* = invalid-type */ return self::E20|(it); -static inline-class-member method E21|(dynamic it) → self::E21 { - lowered final self::E21 #this = it; +static inline-class-member method E21|(dynamic it) → self::E21 /* = invalid-type */ { + lowered final self::E21 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 +static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 /* = invalid-type */ return self::E21|(it); -static inline-class-member method E22|(dynamic it) → self::E22 { - lowered final self::E22 #this = it; +static inline-class-member method E22|(dynamic it) → self::E22 /* = invalid-type */ { + lowered final self::E22 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 +static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 /* = invalid-type */ return self::E22|(it); -static inline-class-member method E23|(dynamic it) → self::E23 { - lowered final self::E23 #this = it; +static inline-class-member method E23|(dynamic it) → self::E23 /* = invalid-type */ { + lowered final self::E23 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 +static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 /* = invalid-type */ return self::E23|(it); -static inline-class-member method E24|(dynamic it) → self::E24 { - lowered final self::E24 #this = it; +static inline-class-member method E24|(dynamic it) → self::E24 /* = invalid-type */ { + lowered final self::E24 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 +static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 /* = invalid-type */ return self::E24|(it); static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/integers_patch.dart */ _#Alias14#fromEnvironment#tearOff(core::String name, {core::int defaultValue = #C1}) → core::int return core::int::fromEnvironment(name, defaultValue: defaultValue); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b fill, {core::bool growable = #C2}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({core::bool growable = #C2}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b generator, {core::bool growable = #C3}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a fill, {core::bool growable = #C2}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({core::bool growable = #C2}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a generator, {core::bool growable = #C3}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b /* = invalid-type */ fill, {core::bool growable = #C2}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({core::bool growable = #C2}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b /* = invalid-type */ generator, {core::bool growable = #C3}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a /* = invalid-type */ fill, {core::bool growable = #C2}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({core::bool growable = #C2}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a /* = invalid-type */ generator, {core::bool growable = #C3}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({core::bool growable = #C2}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff = self::E24>(core::int length, self::_#Alias24#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, self::_#Alias24#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff = self::E24>({core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>({core::bool growable = #C2}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff = self::E24>(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff = self::E24>(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff = self::E24>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff = self::E24>(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements) → core::List return core::List::unmodifiable(elements); constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.outline.expect index 96a356413d0..b65ad3e2523 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.outline.expect @@ -194,23 +194,23 @@ library; import self as self; import "dart:core" as core; -typedef Alias9 = self::E9; -typedef Alias10 = self::E10; -typedef Alias11 = () → self::E11; -typedef Alias12 = (self::E12) → void; -typedef Alias13 = () → void; +typedef Alias9 = self::E9 /* = invalid-type */; +typedef Alias10 = self::E10 /* = invalid-type */; +typedef Alias11 = () → self::E11 /* = invalid-type */; +typedef Alias12 = (self::E12 /* = invalid-type */) → void; +typedef Alias13 = () → void; typedef Alias14 = core::int; typedef Alias15 = core::List; -typedef Alias16a = core::List; -typedef Alias16b = core::List; -typedef Alias18a = (self::E18) → void; +typedef Alias16a = core::List; +typedef Alias16b = core::List; +typedef Alias18a = (self::E18 /* = invalid-type */) → void; typedef Alias18b = (T%) → void; typedef Alias20 = invalid-type; typedef Alias21 = core::int; typedef Alias22a = invalid-type; typedef Alias22b = core::int; -typedef Alias23 = core::List; -typedef Alias24 = self::E24> = core::List; +typedef Alias23 = core::List; +typedef Alias24 /* = invalid-type */ = self::E24 /* = invalid-type */> = core::List; extension type E1(invalid-type it) { constructor • = self::E1|; tearoff • = self::E1|_#new#tearOff; @@ -303,7 +303,7 @@ extension type E18(invalid-type it) { constructor • = self::E18|; tearoff • = self::E18|_#new#tearOff; } -extension type E19a((self::E19b, self::E19b) it) { +extension type E19a((self::E19b /* = core::int */, self::E19b /* = core::int */) it) { constructor • = self::E19a|; tearoff • = self::E19a|_#new#tearOff; } @@ -331,173 +331,173 @@ extension type E24(invalid-type it) { constructor • = self::E24|; tearoff • = self::E24|_#new#tearOff; } -static inline-class-member method E1|(dynamic it) → self::E1 +static inline-class-member method E1|(dynamic it) → self::E1 /* = invalid-type */ ; -static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 +static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 /* = invalid-type */ return self::E1|(it); -static inline-class-member method E2a|(dynamic it) → self::E2a +static inline-class-member method E2a|(dynamic it) → self::E2a /* = invalid-type */ ; -static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a +static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a /* = invalid-type */ return self::E2a|(it); -static inline-class-member method E2b|(dynamic it) → self::E2b +static inline-class-member method E2b|(dynamic it) → self::E2b /* = invalid-type */ ; -static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b +static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b /* = invalid-type */ return self::E2b|(it); -static inline-class-member method E3a|(dynamic it) → self::E3a +static inline-class-member method E3a|(dynamic it) → self::E3a /* = invalid-type */ ; -static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a +static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a /* = invalid-type */ return self::E3a|(it); -static inline-class-member method E3b|(dynamic it) → self::E3b +static inline-class-member method E3b|(dynamic it) → self::E3b /* = invalid-type */ ; -static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b +static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b /* = invalid-type */ return self::E3b|(it); -static inline-class-member method E3c|(dynamic it) → self::E3c +static inline-class-member method E3c|(dynamic it) → self::E3c /* = invalid-type */ ; -static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c +static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c /* = invalid-type */ return self::E3c|(it); -static inline-class-member method E4|(dynamic it) → self::E4 +static inline-class-member method E4|(dynamic it) → self::E4 /* = invalid-type */ ; -static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 +static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 /* = invalid-type */ return self::E4|(it); -static inline-class-member method E5|(dynamic it) → self::E5 +static inline-class-member method E5|(dynamic it) → self::E5 /* = invalid-type */ ; -static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 +static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 /* = invalid-type */ return self::E5|(it); -static inline-class-member method E6|(dynamic it) → self::E6 +static inline-class-member method E6|(dynamic it) → self::E6 /* = invalid-type */ ; -static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 +static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 /* = invalid-type */ return self::E6|(it); -static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 +static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 /* = invalid-type */ return self::E7|(it); -static inline-class-member method E7|(dynamic it) → self::E7 +static inline-class-member method E7|(dynamic it) → self::E7 /* = invalid-type */ ; -static inline-class-member method E8|(dynamic it) → self::E8 +static inline-class-member method E8|(dynamic it) → self::E8 /* = invalid-type */ ; -static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 +static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 /* = invalid-type */ return self::E8|(it); -static inline-class-member method E9|(dynamic it) → self::E9 +static inline-class-member method E9|(dynamic it) → self::E9 /* = invalid-type */ ; -static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 +static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 /* = invalid-type */ return self::E9|(it); -static inline-class-member method E10|(dynamic it) → self::E10 +static inline-class-member method E10|(dynamic it) → self::E10 /* = invalid-type */ ; -static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 +static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 /* = invalid-type */ return self::E10|(it); -static inline-class-member method E11|(dynamic it) → self::E11 +static inline-class-member method E11|(dynamic it) → self::E11 /* = invalid-type */ ; -static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 +static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 /* = invalid-type */ return self::E11|(it); -static inline-class-member method E12|(dynamic it) → self::E12 +static inline-class-member method E12|(dynamic it) → self::E12 /* = invalid-type */ ; -static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 +static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 /* = invalid-type */ return self::E12|(it); -static inline-class-member method E13|(dynamic it) → self::E13 +static inline-class-member method E13|(dynamic it) → self::E13 /* = invalid-type */ ; -static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 +static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 /* = invalid-type */ return self::E13|(it); -static inline-class-member method E14|(dynamic it) → self::E14 +static inline-class-member method E14|(dynamic it) → self::E14 /* = core::int */ ; -static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 +static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 /* = core::int */ return self::E14|(it); -static inline-class-member method E15a|(dynamic it) → self::E15a +static inline-class-member method E15a|(dynamic it) → self::E15a /* = invalid-type */ ; -static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a +static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a /* = invalid-type */ return self::E15a|(it); -static inline-class-member method E15b|(dynamic it) → self::E15b +static inline-class-member method E15b|(dynamic it) → self::E15b /* = invalid-type */ ; -static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b +static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b /* = invalid-type */ return self::E15b|(it); -static inline-class-member method E16a|(dynamic it) → self::E16a +static inline-class-member method E16a|(dynamic it) → self::E16a /* = invalid-type */ ; -static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a +static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a /* = invalid-type */ return self::E16a|(it); -static inline-class-member method E16b|(dynamic it) → self::E16b +static inline-class-member method E16b|(dynamic it) → self::E16b /* = invalid-type */ ; -static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b +static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b /* = invalid-type */ return self::E16b|(it); -static inline-class-member method E17|(dynamic it) → self::E17 +static inline-class-member method E17|(dynamic it) → self::E17 /* = invalid-type */ ; -static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 +static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 /* = invalid-type */ return self::E17|(it); -static inline-class-member method E18|(dynamic it) → self::E18 +static inline-class-member method E18|(dynamic it) → self::E18 /* = invalid-type */ ; -static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 +static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 /* = invalid-type */ return self::E18|(it); -static inline-class-member method E19a|(dynamic it) → self::E19a +static inline-class-member method E19a|(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ ; -static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a +static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ return self::E19a|(it); -static inline-class-member method E19b|(dynamic it) → self::E19b +static inline-class-member method E19b|(dynamic it) → self::E19b /* = core::int */ ; -static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b +static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b /* = core::int */ return self::E19b|(it); -static inline-class-member method E20|(dynamic it) → self::E20 +static inline-class-member method E20|(dynamic it) → self::E20 /* = invalid-type */ ; -static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 +static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 /* = invalid-type */ return self::E20|(it); -static inline-class-member method E21|(dynamic it) → self::E21 +static inline-class-member method E21|(dynamic it) → self::E21 /* = invalid-type */ ; -static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 +static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 /* = invalid-type */ return self::E21|(it); -static inline-class-member method E22|(dynamic it) → self::E22 +static inline-class-member method E22|(dynamic it) → self::E22 /* = invalid-type */ ; -static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 +static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 /* = invalid-type */ return self::E22|(it); -static inline-class-member method E23|(dynamic it) → self::E23 +static inline-class-member method E23|(dynamic it) → self::E23 /* = invalid-type */ ; -static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 +static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 /* = invalid-type */ return self::E23|(it); -static inline-class-member method E24|(dynamic it) → self::E24 +static inline-class-member method E24|(dynamic it) → self::E24 /* = invalid-type */ ; -static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 +static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 /* = invalid-type */ return self::E24|(it); static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/integers_patch.dart */ _#Alias14#fromEnvironment#tearOff(core::String name, {has-declared-initializer core::int defaultValue}) → core::int return core::int::fromEnvironment(name, defaultValue: defaultValue); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b fill, {has-declared-initializer core::bool growable}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({has-declared-initializer core::bool growable}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b generator, {has-declared-initializer core::bool growable}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a fill, {has-declared-initializer core::bool growable}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({has-declared-initializer core::bool growable}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a generator, {has-declared-initializer core::bool growable}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {has-declared-initializer core::bool growable}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b /* = invalid-type */ fill, {has-declared-initializer core::bool growable}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({has-declared-initializer core::bool growable}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b /* = invalid-type */ generator, {has-declared-initializer core::bool growable}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a /* = invalid-type */ fill, {has-declared-initializer core::bool growable}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({has-declared-initializer core::bool growable}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a /* = invalid-type */ generator, {has-declared-initializer core::bool growable}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {has-declared-initializer core::bool growable}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({has-declared-initializer core::bool growable}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({has-declared-initializer core::bool growable}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {has-declared-initializer core::bool growable}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {has-declared-initializer core::bool growable}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff = self::E24>(core::int length, self::_#Alias24#filled#tearOff::T fill, {has-declared-initializer core::bool growable}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, self::_#Alias24#filled#tearOff::T fill, {has-declared-initializer core::bool growable}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff = self::E24>({has-declared-initializer core::bool growable}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>({has-declared-initializer core::bool growable}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff = self::E24>(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff = self::E24>(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {has-declared-initializer core::bool growable}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff = self::E24>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {has-declared-initializer core::bool growable}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {has-declared-initializer core::bool growable}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff = self::E24>(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements) → core::List return core::List::unmodifiable(elements); diff --git a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.transformed.expect index 9d381d2fe93..f5a49655b5c 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/cyclic_representation_type.dart.weak.transformed.expect @@ -194,23 +194,23 @@ library; import self as self; import "dart:core" as core; -typedef Alias9 = self::E9; -typedef Alias10 = self::E10; -typedef Alias11 = () → self::E11; -typedef Alias12 = (self::E12) → void; -typedef Alias13 = () → void; +typedef Alias9 = self::E9 /* = invalid-type */; +typedef Alias10 = self::E10 /* = invalid-type */; +typedef Alias11 = () → self::E11 /* = invalid-type */; +typedef Alias12 = (self::E12 /* = invalid-type */) → void; +typedef Alias13 = () → void; typedef Alias14 = core::int; typedef Alias15 = core::List; -typedef Alias16a = core::List; -typedef Alias16b = core::List; -typedef Alias18a = (self::E18) → void; +typedef Alias16a = core::List; +typedef Alias16b = core::List; +typedef Alias18a = (self::E18 /* = invalid-type */) → void; typedef Alias18b = (T%) → void; typedef Alias20 = invalid-type; typedef Alias21 = core::int; typedef Alias22a = invalid-type; typedef Alias22b = core::int; -typedef Alias23 = core::List; -typedef Alias24 = self::E24> = core::List; +typedef Alias23 = core::List; +typedef Alias24 /* = invalid-type */ = self::E24 /* = invalid-type */> = core::List; extension type E1(invalid-type it) { constructor • = self::E1|; tearoff • = self::E1|_#new#tearOff; @@ -303,7 +303,7 @@ extension type E18(invalid-type it) { constructor • = self::E18|; tearoff • = self::E18|_#new#tearOff; } -extension type E19a((self::E19b, self::E19b) it) { +extension type E19a((self::E19b /* = core::int */, self::E19b /* = core::int */) it) { constructor • = self::E19a|; tearoff • = self::E19a|_#new#tearOff; } @@ -331,235 +331,235 @@ extension type E24(invalid-type it) { constructor • = self::E24|; tearoff • = self::E24|_#new#tearOff; } -static inline-class-member method E1|(dynamic it) → self::E1 { - lowered final self::E1 #this = it; +static inline-class-member method E1|(dynamic it) → self::E1 /* = invalid-type */ { + lowered final self::E1 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 +static inline-class-member method E1|_#new#tearOff(dynamic it) → self::E1 /* = invalid-type */ return self::E1|(it); -static inline-class-member method E2a|(dynamic it) → self::E2a { - lowered final self::E2a #this = it; +static inline-class-member method E2a|(dynamic it) → self::E2a /* = invalid-type */ { + lowered final self::E2a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a +static inline-class-member method E2a|_#new#tearOff(dynamic it) → self::E2a /* = invalid-type */ return self::E2a|(it); -static inline-class-member method E2b|(dynamic it) → self::E2b { - lowered final self::E2b #this = it; +static inline-class-member method E2b|(dynamic it) → self::E2b /* = invalid-type */ { + lowered final self::E2b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b +static inline-class-member method E2b|_#new#tearOff(dynamic it) → self::E2b /* = invalid-type */ return self::E2b|(it); -static inline-class-member method E3a|(dynamic it) → self::E3a { - lowered final self::E3a #this = it; +static inline-class-member method E3a|(dynamic it) → self::E3a /* = invalid-type */ { + lowered final self::E3a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a +static inline-class-member method E3a|_#new#tearOff(dynamic it) → self::E3a /* = invalid-type */ return self::E3a|(it); -static inline-class-member method E3b|(dynamic it) → self::E3b { - lowered final self::E3b #this = it; +static inline-class-member method E3b|(dynamic it) → self::E3b /* = invalid-type */ { + lowered final self::E3b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b +static inline-class-member method E3b|_#new#tearOff(dynamic it) → self::E3b /* = invalid-type */ return self::E3b|(it); -static inline-class-member method E3c|(dynamic it) → self::E3c { - lowered final self::E3c #this = it; +static inline-class-member method E3c|(dynamic it) → self::E3c /* = invalid-type */ { + lowered final self::E3c /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c +static inline-class-member method E3c|_#new#tearOff(dynamic it) → self::E3c /* = invalid-type */ return self::E3c|(it); -static inline-class-member method E4|(dynamic it) → self::E4 { - lowered final self::E4 #this = it; +static inline-class-member method E4|(dynamic it) → self::E4 /* = invalid-type */ { + lowered final self::E4 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 +static inline-class-member method E4|_#new#tearOff(dynamic it) → self::E4 /* = invalid-type */ return self::E4|(it); -static inline-class-member method E5|(dynamic it) → self::E5 { - lowered final self::E5 #this = it; +static inline-class-member method E5|(dynamic it) → self::E5 /* = invalid-type */ { + lowered final self::E5 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 +static inline-class-member method E5|_#new#tearOff(dynamic it) → self::E5 /* = invalid-type */ return self::E5|(it); -static inline-class-member method E6|(dynamic it) → self::E6 { - lowered final self::E6 #this = it; +static inline-class-member method E6|(dynamic it) → self::E6 /* = invalid-type */ { + lowered final self::E6 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 +static inline-class-member method E6|_#new#tearOff(dynamic it) → self::E6 /* = invalid-type */ return self::E6|(it); -static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 +static inline-class-member method E7|_#new#tearOff(dynamic it) → self::E7 /* = invalid-type */ return self::E7|(it); -static inline-class-member method E7|(dynamic it) → self::E7 { - lowered final self::E7 #this = it; +static inline-class-member method E7|(dynamic it) → self::E7 /* = invalid-type */ { + lowered final self::E7 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E8|(dynamic it) → self::E8 { - lowered final self::E8 #this = it; +static inline-class-member method E8|(dynamic it) → self::E8 /* = invalid-type */ { + lowered final self::E8 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 +static inline-class-member method E8|_#new#tearOff(dynamic it) → self::E8 /* = invalid-type */ return self::E8|(it); -static inline-class-member method E9|(dynamic it) → self::E9 { - lowered final self::E9 #this = it; +static inline-class-member method E9|(dynamic it) → self::E9 /* = invalid-type */ { + lowered final self::E9 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 +static inline-class-member method E9|_#new#tearOff(dynamic it) → self::E9 /* = invalid-type */ return self::E9|(it); -static inline-class-member method E10|(dynamic it) → self::E10 { - lowered final self::E10 #this = it; +static inline-class-member method E10|(dynamic it) → self::E10 /* = invalid-type */ { + lowered final self::E10 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 +static inline-class-member method E10|_#new#tearOff(dynamic it) → self::E10 /* = invalid-type */ return self::E10|(it); -static inline-class-member method E11|(dynamic it) → self::E11 { - lowered final self::E11 #this = it; +static inline-class-member method E11|(dynamic it) → self::E11 /* = invalid-type */ { + lowered final self::E11 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 +static inline-class-member method E11|_#new#tearOff(dynamic it) → self::E11 /* = invalid-type */ return self::E11|(it); -static inline-class-member method E12|(dynamic it) → self::E12 { - lowered final self::E12 #this = it; +static inline-class-member method E12|(dynamic it) → self::E12 /* = invalid-type */ { + lowered final self::E12 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 +static inline-class-member method E12|_#new#tearOff(dynamic it) → self::E12 /* = invalid-type */ return self::E12|(it); -static inline-class-member method E13|(dynamic it) → self::E13 { - lowered final self::E13 #this = it; +static inline-class-member method E13|(dynamic it) → self::E13 /* = invalid-type */ { + lowered final self::E13 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 +static inline-class-member method E13|_#new#tearOff(dynamic it) → self::E13 /* = invalid-type */ return self::E13|(it); -static inline-class-member method E14|(dynamic it) → self::E14 { - lowered final self::E14 #this = it; +static inline-class-member method E14|(dynamic it) → self::E14 /* = core::int */ { + lowered final self::E14 /* = core::int */ #this = it; return #this; } -static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 +static inline-class-member method E14|_#new#tearOff(dynamic it) → self::E14 /* = core::int */ return self::E14|(it); -static inline-class-member method E15a|(dynamic it) → self::E15a { - lowered final self::E15a #this = it; +static inline-class-member method E15a|(dynamic it) → self::E15a /* = invalid-type */ { + lowered final self::E15a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a +static inline-class-member method E15a|_#new#tearOff(dynamic it) → self::E15a /* = invalid-type */ return self::E15a|(it); -static inline-class-member method E15b|(dynamic it) → self::E15b { - lowered final self::E15b #this = it; +static inline-class-member method E15b|(dynamic it) → self::E15b /* = invalid-type */ { + lowered final self::E15b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b +static inline-class-member method E15b|_#new#tearOff(dynamic it) → self::E15b /* = invalid-type */ return self::E15b|(it); -static inline-class-member method E16a|(dynamic it) → self::E16a { - lowered final self::E16a #this = it; +static inline-class-member method E16a|(dynamic it) → self::E16a /* = invalid-type */ { + lowered final self::E16a /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a +static inline-class-member method E16a|_#new#tearOff(dynamic it) → self::E16a /* = invalid-type */ return self::E16a|(it); -static inline-class-member method E16b|(dynamic it) → self::E16b { - lowered final self::E16b #this = it; +static inline-class-member method E16b|(dynamic it) → self::E16b /* = invalid-type */ { + lowered final self::E16b /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b +static inline-class-member method E16b|_#new#tearOff(dynamic it) → self::E16b /* = invalid-type */ return self::E16b|(it); -static inline-class-member method E17|(dynamic it) → self::E17 { - lowered final self::E17 #this = it; +static inline-class-member method E17|(dynamic it) → self::E17 /* = invalid-type */ { + lowered final self::E17 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 +static inline-class-member method E17|_#new#tearOff(dynamic it) → self::E17 /* = invalid-type */ return self::E17|(it); -static inline-class-member method E18|(dynamic it) → self::E18 { - lowered final self::E18 #this = it; +static inline-class-member method E18|(dynamic it) → self::E18 /* = invalid-type */ { + lowered final self::E18 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 +static inline-class-member method E18|_#new#tearOff(dynamic it) → self::E18 /* = invalid-type */ return self::E18|(it); -static inline-class-member method E19a|(dynamic it) → self::E19a { - lowered final self::E19a #this = it; +static inline-class-member method E19a|(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ { + lowered final self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ #this = it; return #this; } -static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a +static inline-class-member method E19a|_#new#tearOff(dynamic it) → self::E19a /* =(self::E19b /* = core::int */, self::E19b /* = core::int */) */ return self::E19a|(it); -static inline-class-member method E19b|(dynamic it) → self::E19b { - lowered final self::E19b #this = it; +static inline-class-member method E19b|(dynamic it) → self::E19b /* = core::int */ { + lowered final self::E19b /* = core::int */ #this = it; return #this; } -static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b +static inline-class-member method E19b|_#new#tearOff(dynamic it) → self::E19b /* = core::int */ return self::E19b|(it); -static inline-class-member method E20|(dynamic it) → self::E20 { - lowered final self::E20 #this = it; +static inline-class-member method E20|(dynamic it) → self::E20 /* = invalid-type */ { + lowered final self::E20 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 +static inline-class-member method E20|_#new#tearOff(dynamic it) → self::E20 /* = invalid-type */ return self::E20|(it); -static inline-class-member method E21|(dynamic it) → self::E21 { - lowered final self::E21 #this = it; +static inline-class-member method E21|(dynamic it) → self::E21 /* = invalid-type */ { + lowered final self::E21 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 +static inline-class-member method E21|_#new#tearOff(dynamic it) → self::E21 /* = invalid-type */ return self::E21|(it); -static inline-class-member method E22|(dynamic it) → self::E22 { - lowered final self::E22 #this = it; +static inline-class-member method E22|(dynamic it) → self::E22 /* = invalid-type */ { + lowered final self::E22 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 +static inline-class-member method E22|_#new#tearOff(dynamic it) → self::E22 /* = invalid-type */ return self::E22|(it); -static inline-class-member method E23|(dynamic it) → self::E23 { - lowered final self::E23 #this = it; +static inline-class-member method E23|(dynamic it) → self::E23 /* = invalid-type */ { + lowered final self::E23 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 +static inline-class-member method E23|_#new#tearOff(dynamic it) → self::E23 /* = invalid-type */ return self::E23|(it); -static inline-class-member method E24|(dynamic it) → self::E24 { - lowered final self::E24 #this = it; +static inline-class-member method E24|(dynamic it) → self::E24 /* = invalid-type */ { + lowered final self::E24 /* = invalid-type */ #this = it; return #this; } -static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 +static inline-class-member method E24|_#new#tearOff(dynamic it) → self::E24 /* = invalid-type */ return self::E24|(it); static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/integers_patch.dart */ _#Alias14#fromEnvironment#tearOff(core::String name, {core::int defaultValue = #C1}) → core::int return core::int::fromEnvironment(name, defaultValue: defaultValue); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b fill, {core::bool growable = #C2}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({core::bool growable = #C2}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b generator, {core::bool growable = #C3}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a fill, {core::bool growable = #C2}) → core::List - return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({core::bool growable = #C2}) → core::List - return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List - return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a generator, {core::bool growable = #C3}) → core::List - return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List - return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#filled#tearOff(core::int length, self::E16b /* = invalid-type */ fill, {core::bool growable = #C2}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#empty#tearOff({core::bool growable = #C2}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#generate#tearOff(core::int length, (core::int) → self::E16b /* = invalid-type */ generator, {core::bool growable = #C3}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16a#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#filled#tearOff(core::int length, self::E16a /* = invalid-type */ fill, {core::bool growable = #C2}) → core::List + return core::List::filled(length, fill, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#empty#tearOff({core::bool growable = #C2}) → core::List + return core::List::empty(growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::from(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List + return core::List::of(elements, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#generate#tearOff(core::int length, (core::int) → self::E16a /* = invalid-type */ generator, {core::bool growable = #C3}) → core::List + return core::List::generate(length, generator, growable: growable); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias16b#unmodifiable#tearOff(core::Iterable elements) → core::List + return core::List::unmodifiable(elements); +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#filled#tearOff(core::int length, self::_#Alias23#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#empty#tearOff({core::bool growable = #C2}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#from#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#of#tearOff(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#generate#tearOff(core::int length, (core::int) → self::_#Alias23#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias23#unmodifiable#tearOff(core::Iterable elements) → core::List return core::List::unmodifiable(elements); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff = self::E24>(core::int length, self::_#Alias24#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#filled#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, self::_#Alias24#filled#tearOff::T fill, {core::bool growable = #C2}) → core::List return core::List::filled(length, fill, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff = self::E24>({core::bool growable = #C2}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#empty#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>({core::bool growable = #C2}) → core::List return core::List::empty(growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff = self::E24>(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#from#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::from(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff = self::E24>(core::Iterable elements, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#of#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements, {core::bool growable = #C3}) → core::List return core::List::of(elements, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff = self::E24>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#generate#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::int length, (core::int) → self::_#Alias24#generate#tearOff::T generator, {core::bool growable = #C3}) → core::List return core::List::generate(length, generator, growable: growable); -static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff = self::E24>(core::Iterable elements) → core::List +static method /* from org-dartlang-sdk:///sdk/lib/_internal/vm_shared/lib/array_patch.dart */ _#Alias24#unmodifiable#tearOff /* = invalid-type */ = self::E24 /* = invalid-type */>(core::Iterable elements) → core::List return core::List::unmodifiable(elements); constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.strong.expect index 47eccebb1dc..9f84a45d8be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.strong.expect @@ -6,7 +6,7 @@ extension type ExtensionType1(core::int it) { constructor • = self::ExtensionType1|; tearoff • = self::ExtensionType1|_#new#tearOff; } -extension type ExtensionType2(core::int it) implements self::ExtensionType1, core::int { +extension type ExtensionType2(core::int it) implements self::ExtensionType1 /* = core::int */, core::int { constructor • = self::ExtensionType2|; tearoff • = self::ExtensionType2|_#new#tearOff; } @@ -49,81 +49,81 @@ extension type ExtensionType7(core::int it) { tearoff id = self::ExtensionType7|_#id#tearOff; } static field core::int ExtensionType4|staticField = 42; -static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 { - lowered final self::ExtensionType1 #this = it; +static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 /* = core::int */ { + lowered final self::ExtensionType1 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 +static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 /* = core::int */ return self::ExtensionType1|(it); -static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 { - lowered final self::ExtensionType2 #this = it; +static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 /* = core::int */ { + lowered final self::ExtensionType2 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 +static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 /* = core::int */ return self::ExtensionType2|(it); -static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 { - lowered final self::ExtensionType3 #this = it; +static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|::T */ { + lowered final self::ExtensionType3 /* = self::ExtensionType3|::T */ #this = it; return #this; } -static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 +static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|_#new#tearOff::T */ return self::ExtensionType3|(it); -static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this = it; +static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this = it; +static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|constructor(it); -static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this; +static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this; #this = self::ExtensionType4|(it); return #this; } -static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|redirect(it); -static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|fact(it); -static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* redirection-target: self::ExtensionType4| */ +static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* = core::int */ /* redirection-target: self::ExtensionType4| */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 #this, core::int value) → void {} -static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 /* = core::int */ #this, core::int value) → void {} +static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 #this) → () → core::int +static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 /* = core::int */ #this) → () → core::int return () → core::int => self::ExtensionType4|method(#this); -static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 #this, core::int index) → core::int +static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 /* = core::int */ #this, core::int index) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 #this, core::int index, core::int value) → void {} +static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 /* = core::int */ #this, core::int index, core::int value) → void {} static inline-class-member get ExtensionType4|staticGetter() → core::int return 42; static inline-class-member set ExtensionType4|staticSetter(core::int value) → void {} static inline-class-member method ExtensionType4|staticMethod() → core::int return 42; -static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 { - lowered final self::ExtensionType5 #this = it; +static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 /* = core::int */ { + lowered final self::ExtensionType5 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 +static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 /* = core::int */ return self::ExtensionType5|(it); -static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 { - lowered final self::ExtensionType6 #this = it; +static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 /* = core::int */ { + lowered final self::ExtensionType6 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 +static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 /* = core::int */ return self::ExtensionType6|id(it); -static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 { - lowered final self::ExtensionType7 #this = it; +static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 /* = core::int */ { + lowered final self::ExtensionType7 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 +static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 /* = core::int */ return self::ExtensionType7|id(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.strong.transformed.expect index 47eccebb1dc..9f84a45d8be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.strong.transformed.expect @@ -6,7 +6,7 @@ extension type ExtensionType1(core::int it) { constructor • = self::ExtensionType1|; tearoff • = self::ExtensionType1|_#new#tearOff; } -extension type ExtensionType2(core::int it) implements self::ExtensionType1, core::int { +extension type ExtensionType2(core::int it) implements self::ExtensionType1 /* = core::int */, core::int { constructor • = self::ExtensionType2|; tearoff • = self::ExtensionType2|_#new#tearOff; } @@ -49,81 +49,81 @@ extension type ExtensionType7(core::int it) { tearoff id = self::ExtensionType7|_#id#tearOff; } static field core::int ExtensionType4|staticField = 42; -static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 { - lowered final self::ExtensionType1 #this = it; +static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 /* = core::int */ { + lowered final self::ExtensionType1 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 +static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 /* = core::int */ return self::ExtensionType1|(it); -static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 { - lowered final self::ExtensionType2 #this = it; +static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 /* = core::int */ { + lowered final self::ExtensionType2 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 +static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 /* = core::int */ return self::ExtensionType2|(it); -static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 { - lowered final self::ExtensionType3 #this = it; +static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|::T */ { + lowered final self::ExtensionType3 /* = self::ExtensionType3|::T */ #this = it; return #this; } -static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 +static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|_#new#tearOff::T */ return self::ExtensionType3|(it); -static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this = it; +static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this = it; +static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|constructor(it); -static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this; +static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this; #this = self::ExtensionType4|(it); return #this; } -static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|redirect(it); -static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|fact(it); -static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* redirection-target: self::ExtensionType4| */ +static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* = core::int */ /* redirection-target: self::ExtensionType4| */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 #this, core::int value) → void {} -static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 /* = core::int */ #this, core::int value) → void {} +static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 #this) → () → core::int +static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 /* = core::int */ #this) → () → core::int return () → core::int => self::ExtensionType4|method(#this); -static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 #this, core::int index) → core::int +static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 /* = core::int */ #this, core::int index) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 #this, core::int index, core::int value) → void {} +static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 /* = core::int */ #this, core::int index, core::int value) → void {} static inline-class-member get ExtensionType4|staticGetter() → core::int return 42; static inline-class-member set ExtensionType4|staticSetter(core::int value) → void {} static inline-class-member method ExtensionType4|staticMethod() → core::int return 42; -static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 { - lowered final self::ExtensionType5 #this = it; +static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 /* = core::int */ { + lowered final self::ExtensionType5 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 +static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 /* = core::int */ return self::ExtensionType5|(it); -static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 { - lowered final self::ExtensionType6 #this = it; +static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 /* = core::int */ { + lowered final self::ExtensionType6 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 +static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 /* = core::int */ return self::ExtensionType6|id(it); -static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 { - lowered final self::ExtensionType7 #this = it; +static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 /* = core::int */ { + lowered final self::ExtensionType7 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 +static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 /* = core::int */ return self::ExtensionType7|id(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.expect index 47eccebb1dc..9f84a45d8be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.expect @@ -6,7 +6,7 @@ extension type ExtensionType1(core::int it) { constructor • = self::ExtensionType1|; tearoff • = self::ExtensionType1|_#new#tearOff; } -extension type ExtensionType2(core::int it) implements self::ExtensionType1, core::int { +extension type ExtensionType2(core::int it) implements self::ExtensionType1 /* = core::int */, core::int { constructor • = self::ExtensionType2|; tearoff • = self::ExtensionType2|_#new#tearOff; } @@ -49,81 +49,81 @@ extension type ExtensionType7(core::int it) { tearoff id = self::ExtensionType7|_#id#tearOff; } static field core::int ExtensionType4|staticField = 42; -static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 { - lowered final self::ExtensionType1 #this = it; +static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 /* = core::int */ { + lowered final self::ExtensionType1 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 +static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 /* = core::int */ return self::ExtensionType1|(it); -static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 { - lowered final self::ExtensionType2 #this = it; +static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 /* = core::int */ { + lowered final self::ExtensionType2 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 +static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 /* = core::int */ return self::ExtensionType2|(it); -static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 { - lowered final self::ExtensionType3 #this = it; +static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|::T */ { + lowered final self::ExtensionType3 /* = self::ExtensionType3|::T */ #this = it; return #this; } -static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 +static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|_#new#tearOff::T */ return self::ExtensionType3|(it); -static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this = it; +static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this = it; +static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|constructor(it); -static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this; +static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this; #this = self::ExtensionType4|(it); return #this; } -static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|redirect(it); -static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|fact(it); -static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* redirection-target: self::ExtensionType4| */ +static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* = core::int */ /* redirection-target: self::ExtensionType4| */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 #this, core::int value) → void {} -static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 /* = core::int */ #this, core::int value) → void {} +static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 #this) → () → core::int +static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 /* = core::int */ #this) → () → core::int return () → core::int => self::ExtensionType4|method(#this); -static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 #this, core::int index) → core::int +static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 /* = core::int */ #this, core::int index) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 #this, core::int index, core::int value) → void {} +static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 /* = core::int */ #this, core::int index, core::int value) → void {} static inline-class-member get ExtensionType4|staticGetter() → core::int return 42; static inline-class-member set ExtensionType4|staticSetter(core::int value) → void {} static inline-class-member method ExtensionType4|staticMethod() → core::int return 42; -static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 { - lowered final self::ExtensionType5 #this = it; +static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 /* = core::int */ { + lowered final self::ExtensionType5 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 +static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 /* = core::int */ return self::ExtensionType5|(it); -static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 { - lowered final self::ExtensionType6 #this = it; +static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 /* = core::int */ { + lowered final self::ExtensionType6 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 +static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 /* = core::int */ return self::ExtensionType6|id(it); -static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 { - lowered final self::ExtensionType7 #this = it; +static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 /* = core::int */ { + lowered final self::ExtensionType7 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 +static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 /* = core::int */ return self::ExtensionType7|id(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.modular.expect index 47eccebb1dc..9f84a45d8be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.modular.expect @@ -6,7 +6,7 @@ extension type ExtensionType1(core::int it) { constructor • = self::ExtensionType1|; tearoff • = self::ExtensionType1|_#new#tearOff; } -extension type ExtensionType2(core::int it) implements self::ExtensionType1, core::int { +extension type ExtensionType2(core::int it) implements self::ExtensionType1 /* = core::int */, core::int { constructor • = self::ExtensionType2|; tearoff • = self::ExtensionType2|_#new#tearOff; } @@ -49,81 +49,81 @@ extension type ExtensionType7(core::int it) { tearoff id = self::ExtensionType7|_#id#tearOff; } static field core::int ExtensionType4|staticField = 42; -static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 { - lowered final self::ExtensionType1 #this = it; +static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 /* = core::int */ { + lowered final self::ExtensionType1 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 +static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 /* = core::int */ return self::ExtensionType1|(it); -static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 { - lowered final self::ExtensionType2 #this = it; +static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 /* = core::int */ { + lowered final self::ExtensionType2 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 +static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 /* = core::int */ return self::ExtensionType2|(it); -static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 { - lowered final self::ExtensionType3 #this = it; +static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|::T */ { + lowered final self::ExtensionType3 /* = self::ExtensionType3|::T */ #this = it; return #this; } -static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 +static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|_#new#tearOff::T */ return self::ExtensionType3|(it); -static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this = it; +static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this = it; +static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|constructor(it); -static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this; +static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this; #this = self::ExtensionType4|(it); return #this; } -static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|redirect(it); -static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|fact(it); -static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* redirection-target: self::ExtensionType4| */ +static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* = core::int */ /* redirection-target: self::ExtensionType4| */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 #this, core::int value) → void {} -static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 /* = core::int */ #this, core::int value) → void {} +static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 #this) → () → core::int +static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 /* = core::int */ #this) → () → core::int return () → core::int => self::ExtensionType4|method(#this); -static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 #this, core::int index) → core::int +static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 /* = core::int */ #this, core::int index) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 #this, core::int index, core::int value) → void {} +static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 /* = core::int */ #this, core::int index, core::int value) → void {} static inline-class-member get ExtensionType4|staticGetter() → core::int return 42; static inline-class-member set ExtensionType4|staticSetter(core::int value) → void {} static inline-class-member method ExtensionType4|staticMethod() → core::int return 42; -static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 { - lowered final self::ExtensionType5 #this = it; +static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 /* = core::int */ { + lowered final self::ExtensionType5 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 +static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 /* = core::int */ return self::ExtensionType5|(it); -static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 { - lowered final self::ExtensionType6 #this = it; +static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 /* = core::int */ { + lowered final self::ExtensionType6 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 +static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 /* = core::int */ return self::ExtensionType6|id(it); -static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 { - lowered final self::ExtensionType7 #this = it; +static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 /* = core::int */ { + lowered final self::ExtensionType7 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 +static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 /* = core::int */ return self::ExtensionType7|id(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.outline.expect index f80ce4589a5..54c847cb380 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.outline.expect @@ -6,7 +6,7 @@ extension type ExtensionType1(core::int it) { constructor • = self::ExtensionType1|; tearoff • = self::ExtensionType1|_#new#tearOff; } -extension type ExtensionType2(core::int it) implements self::ExtensionType1, core::int { +extension type ExtensionType2(core::int it) implements self::ExtensionType1 /* = core::int */, core::int { constructor • = self::ExtensionType2|; tearoff • = self::ExtensionType2|_#new#tearOff; } @@ -49,49 +49,49 @@ extension type ExtensionType7(core::int it) { tearoff id = self::ExtensionType7|_#id#tearOff; } static field core::int ExtensionType4|staticField; -static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 +static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 /* = core::int */ ; -static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 +static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 /* = core::int */ return self::ExtensionType1|(it); -static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 +static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 /* = core::int */ ; -static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 +static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 /* = core::int */ return self::ExtensionType2|(it); -static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 +static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|::T */ ; -static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 +static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|_#new#tearOff::T */ return self::ExtensionType3|(it); -static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 /* = core::int */ ; -static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 /* = core::int */ ; -static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|constructor(it); -static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 /* = core::int */ ; -static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|redirect(it); -static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 /* = core::int */ ; -static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|fact(it); -static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* redirection-target: self::ExtensionType4| */ +static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* = core::int */ /* redirection-target: self::ExtensionType4| */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int ; -static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 #this, core::int value) → void +static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 /* = core::int */ #this, core::int value) → void ; -static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int ; -static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 #this) → () → core::int +static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 /* = core::int */ #this) → () → core::int return () → core::int => self::ExtensionType4|method(#this); -static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 #this, core::int index) → core::int +static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 /* = core::int */ #this, core::int index) → core::int ; -static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 #this, core::int index, core::int value) → void +static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 /* = core::int */ #this, core::int index, core::int value) → void ; static inline-class-member get ExtensionType4|staticGetter() → core::int ; @@ -99,15 +99,15 @@ static inline-class-member set ExtensionType4|staticSetter(core::int value) → ; static inline-class-member method ExtensionType4|staticMethod() → core::int ; -static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 +static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 /* = core::int */ ; -static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 +static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 /* = core::int */ return self::ExtensionType5|(it); -static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 +static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 /* = core::int */ ; -static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 +static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 /* = core::int */ return self::ExtensionType6|id(it); -static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 +static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 /* = core::int */ ; -static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 +static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 /* = core::int */ return self::ExtensionType7|id(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.transformed.expect index 47eccebb1dc..9f84a45d8be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/extension_type_declarations.dart.weak.transformed.expect @@ -6,7 +6,7 @@ extension type ExtensionType1(core::int it) { constructor • = self::ExtensionType1|; tearoff • = self::ExtensionType1|_#new#tearOff; } -extension type ExtensionType2(core::int it) implements self::ExtensionType1, core::int { +extension type ExtensionType2(core::int it) implements self::ExtensionType1 /* = core::int */, core::int { constructor • = self::ExtensionType2|; tearoff • = self::ExtensionType2|_#new#tearOff; } @@ -49,81 +49,81 @@ extension type ExtensionType7(core::int it) { tearoff id = self::ExtensionType7|_#id#tearOff; } static field core::int ExtensionType4|staticField = 42; -static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 { - lowered final self::ExtensionType1 #this = it; +static inline-class-member method ExtensionType1|(dynamic it) → self::ExtensionType1 /* = core::int */ { + lowered final self::ExtensionType1 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 +static inline-class-member method ExtensionType1|_#new#tearOff(dynamic it) → self::ExtensionType1 /* = core::int */ return self::ExtensionType1|(it); -static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 { - lowered final self::ExtensionType2 #this = it; +static inline-class-member method ExtensionType2|(dynamic it) → self::ExtensionType2 /* = core::int */ { + lowered final self::ExtensionType2 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 +static inline-class-member method ExtensionType2|_#new#tearOff(dynamic it) → self::ExtensionType2 /* = core::int */ return self::ExtensionType2|(it); -static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 { - lowered final self::ExtensionType3 #this = it; +static inline-class-member method ExtensionType3|(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|::T */ { + lowered final self::ExtensionType3 /* = self::ExtensionType3|::T */ #this = it; return #this; } -static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 +static inline-class-member method ExtensionType3|_#new#tearOff(dynamic it) → self::ExtensionType3 /* = self::ExtensionType3|_#new#tearOff::T */ return self::ExtensionType3|(it); -static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this = it; +static inline-class-member method ExtensionType4|(dynamic it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#new#tearOff(dynamic it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this = it; +static inline-class-member method ExtensionType4|constructor(core::int it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#constructor#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|constructor(it); -static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 { - lowered final self::ExtensionType4 #this; +static inline-class-member method ExtensionType4|redirect(core::int it) → self::ExtensionType4 /* = core::int */ { + lowered final self::ExtensionType4 /* = core::int */ #this; #this = self::ExtensionType4|(it); return #this; } -static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirect#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|redirect(it); -static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|fact(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#fact#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|fact(it); -static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* redirection-target: self::ExtensionType4| */ +static inline-class-member method ExtensionType4|redirectingFactory(core::int it) → self::ExtensionType4 /* = core::int */ /* redirection-target: self::ExtensionType4| */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 +static inline-class-member method ExtensionType4|_#redirectingFactory#tearOff(core::int it) → self::ExtensionType4 /* = core::int */ return self::ExtensionType4|(it); -static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|get#getter(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 #this, core::int value) → void {} -static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 #this) → core::int +static inline-class-member method ExtensionType4|set#setter(lowered final self::ExtensionType4 /* = core::int */ #this, core::int value) → void {} +static inline-class-member method ExtensionType4|method(lowered final self::ExtensionType4 /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 #this) → () → core::int +static inline-class-member method ExtensionType4|get#method(lowered final self::ExtensionType4 /* = core::int */ #this) → () → core::int return () → core::int => self::ExtensionType4|method(#this); -static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 #this, core::int index) → core::int +static inline-class-member method ExtensionType4|[](lowered final self::ExtensionType4 /* = core::int */ #this, core::int index) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 #this, core::int index, core::int value) → void {} +static inline-class-member method ExtensionType4|[]=(lowered final self::ExtensionType4 /* = core::int */ #this, core::int index, core::int value) → void {} static inline-class-member get ExtensionType4|staticGetter() → core::int return 42; static inline-class-member set ExtensionType4|staticSetter(core::int value) → void {} static inline-class-member method ExtensionType4|staticMethod() → core::int return 42; -static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 { - lowered final self::ExtensionType5 #this = it; +static inline-class-member method ExtensionType5|(dynamic it) → self::ExtensionType5 /* = core::int */ { + lowered final self::ExtensionType5 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 +static inline-class-member method ExtensionType5|_#new#tearOff(dynamic it) → self::ExtensionType5 /* = core::int */ return self::ExtensionType5|(it); -static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 { - lowered final self::ExtensionType6 #this = it; +static inline-class-member method ExtensionType6|id(dynamic it) → self::ExtensionType6 /* = core::int */ { + lowered final self::ExtensionType6 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 +static inline-class-member method ExtensionType6|_#id#tearOff(dynamic it) → self::ExtensionType6 /* = core::int */ return self::ExtensionType6|id(it); -static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 { - lowered final self::ExtensionType7 #this = it; +static inline-class-member method ExtensionType7|id(dynamic it) → self::ExtensionType7 /* = core::int */ { + lowered final self::ExtensionType7 /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 +static inline-class-member method ExtensionType7|_#id#tearOff(dynamic it) → self::ExtensionType7 /* = core::int */ return self::ExtensionType7|id(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/external.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/external.dart.strong.expect index 1e7519f1e32..f386cdf448e 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/external.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/external.dart.strong.expect @@ -37,43 +37,43 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -static inline-class-member method B|_(dynamic a) → self::B { - lowered final self::B #this = a; +static inline-class-member method B|_(dynamic a) → self::B /* = self::A */ { + lowered final self::B /* = self::A */ #this = a; return #this; } -static inline-class-member method B|_#_#tearOff(dynamic a) → self::B +static inline-class-member method B|_#_#tearOff(dynamic a) → self::B /* = self::A */ return self::B|_(a); -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); () → self::A f1 = self::B|get#method(b1); - b2 = self::B|genericMethod(b2, b2); - (T) → T f2 = self::B|get#genericMethod(b2); + b2 = self::B|genericMethod(b2, b2); + (T) → T f2 = self::B|get#genericMethod(b2); (core::int) → core::int f3 = self::B|get#genericMethod(b2); b1 = self::B|get#getter(b2); self::B|set#setter(b1, b2); @@ -81,7 +81,7 @@ static method method(self::A a) → void { self::B|staticField = a; a = self::B|staticMethod(); () → self::A f4 = #C1; - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); (T%) → T% f5 = #C2; (core::String) → core::String f6 = #C3; b1 = self::B|staticGetter; diff --git a/pkg/front_end/testcases/inline_class/extension_types/external.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/external.dart.strong.transformed.expect index 1e7519f1e32..f386cdf448e 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/external.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/external.dart.strong.transformed.expect @@ -37,43 +37,43 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -static inline-class-member method B|_(dynamic a) → self::B { - lowered final self::B #this = a; +static inline-class-member method B|_(dynamic a) → self::B /* = self::A */ { + lowered final self::B /* = self::A */ #this = a; return #this; } -static inline-class-member method B|_#_#tearOff(dynamic a) → self::B +static inline-class-member method B|_#_#tearOff(dynamic a) → self::B /* = self::A */ return self::B|_(a); -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); () → self::A f1 = self::B|get#method(b1); - b2 = self::B|genericMethod(b2, b2); - (T) → T f2 = self::B|get#genericMethod(b2); + b2 = self::B|genericMethod(b2, b2); + (T) → T f2 = self::B|get#genericMethod(b2); (core::int) → core::int f3 = self::B|get#genericMethod(b2); b1 = self::B|get#getter(b2); self::B|set#setter(b1, b2); @@ -81,7 +81,7 @@ static method method(self::A a) → void { self::B|staticField = a; a = self::B|staticMethod(); () → self::A f4 = #C1; - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); (T%) → T% f5 = #C2; (core::String) → core::String f6 = #C3; b1 = self::B|staticGetter; diff --git a/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.expect index 597de539bf6..5dc61aa6852 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.expect @@ -37,43 +37,43 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -static inline-class-member method B|_(dynamic a) → self::B { - lowered final self::B #this = a; +static inline-class-member method B|_(dynamic a) → self::B /* = self::A */ { + lowered final self::B /* = self::A */ #this = a; return #this; } -static inline-class-member method B|_#_#tearOff(dynamic a) → self::B +static inline-class-member method B|_#_#tearOff(dynamic a) → self::B /* = self::A */ return self::B|_(a); -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); () → self::A f1 = self::B|get#method(b1); - b2 = self::B|genericMethod(b2, b2); - (T) → T f2 = self::B|get#genericMethod(b2); + b2 = self::B|genericMethod(b2, b2); + (T) → T f2 = self::B|get#genericMethod(b2); (core::int) → core::int f3 = self::B|get#genericMethod(b2); b1 = self::B|get#getter(b2); self::B|set#setter(b1, b2); @@ -81,7 +81,7 @@ static method method(self::A a) → void { self::B|staticField = a; a = self::B|staticMethod(); () → self::A f4 = #C1; - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); (T%) → T% f5 = #C2; (core::String) → core::String f6 = #C3; b1 = self::B|staticGetter; diff --git a/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.modular.expect index 597de539bf6..5dc61aa6852 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.modular.expect @@ -37,43 +37,43 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -static inline-class-member method B|_(dynamic a) → self::B { - lowered final self::B #this = a; +static inline-class-member method B|_(dynamic a) → self::B /* = self::A */ { + lowered final self::B /* = self::A */ #this = a; return #this; } -static inline-class-member method B|_#_#tearOff(dynamic a) → self::B +static inline-class-member method B|_#_#tearOff(dynamic a) → self::B /* = self::A */ return self::B|_(a); -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); () → self::A f1 = self::B|get#method(b1); - b2 = self::B|genericMethod(b2, b2); - (T) → T f2 = self::B|get#genericMethod(b2); + b2 = self::B|genericMethod(b2, b2); + (T) → T f2 = self::B|get#genericMethod(b2); (core::int) → core::int f3 = self::B|get#genericMethod(b2); b1 = self::B|get#getter(b2); self::B|set#setter(b1, b2); @@ -81,7 +81,7 @@ static method method(self::A a) → void { self::B|staticField = a; a = self::B|staticMethod(); () → self::A f4 = #C1; - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); (T%) → T% f5 = #C2; (core::String) → core::String f6 = #C3; b1 = self::B|staticGetter; diff --git a/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.outline.expect index c3c36e694f7..27b3887261e 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.outline.expect @@ -28,31 +28,31 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -static inline-class-member method B|_(dynamic a) → self::B +static inline-class-member method B|_(dynamic a) → self::B /* = self::A */ ; -static inline-class-member method B|_#_#tearOff(dynamic a) → self::B +static inline-class-member method B|_#_#tearOff(dynamic a) → self::B /* = self::A */ return self::B|_(a); -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.transformed.expect index 597de539bf6..5dc61aa6852 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/external.dart.weak.transformed.expect @@ -37,43 +37,43 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -static inline-class-member method B|_(dynamic a) → self::B { - lowered final self::B #this = a; +static inline-class-member method B|_(dynamic a) → self::B /* = self::A */ { + lowered final self::B /* = self::A */ #this = a; return #this; } -static inline-class-member method B|_#_#tearOff(dynamic a) → self::B +static inline-class-member method B|_#_#tearOff(dynamic a) → self::B /* = self::A */ return self::B|_(a); -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T t) → self::B|genericMethod::T; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T) → T - return (T t) → T => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T t) → self::B|genericMethod::T; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T) → T + return (T t) → T => self::B|genericMethod(#this, t); +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); () → self::A f1 = self::B|get#method(b1); - b2 = self::B|genericMethod(b2, b2); - (T) → T f2 = self::B|get#genericMethod(b2); + b2 = self::B|genericMethod(b2, b2); + (T) → T f2 = self::B|get#genericMethod(b2); (core::int) → core::int f3 = self::B|get#genericMethod(b2); b1 = self::B|get#getter(b2); self::B|set#setter(b1, b2); @@ -81,7 +81,7 @@ static method method(self::A a) → void { self::B|staticField = a; a = self::B|staticMethod(); () → self::A f4 = #C1; - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); (T%) → T% f5 = #C2; (core::String) → core::String f6 = #C3; b1 = self::B|staticGetter; diff --git a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.strong.expect index 381d49be46e..00bb75e2c44 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.strong.expect @@ -337,13 +337,13 @@ extension type ErroneousInlineClass(core::int a) { tearoff • = self::ErroneousInlineClass|_#new#tearOff; } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void {} -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:15:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -363,15 +363,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = 42; // Error, should not resolve to extension method. ^^" in #this{}.it = 42; } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass { - lowered final self::GenericInlineClass #this = it; +static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ { + lowered final self::GenericInlineClass /* = self::GenericInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void { +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void { self::GenericInlineClass|test::T% a1 = #this as{Unchecked} self::GenericInlineClass|test::T%; self::GenericInlineClass|test::T% a2 = #this as{Unchecked} self::GenericInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:26:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'. @@ -391,15 +391,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = t; // Error, should not resolve to extension method. ^^" in #this{}.it = t; } -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass { - lowered final self::FunctionInlineClass #this = it; +static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ { + lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void { +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void { () → self::FunctionInlineClass|test::T% a1 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; () → self::FunctionInlineClass|test::T% a2 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:37:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'. @@ -423,15 +423,15 @@ Try correcting the name to the name of an existing setter, or defining a setter self::FunctionInlineClass|test::T% d3 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; self::FunctionInlineClass|test::T% d4 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; } -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass { - lowered final self::GenericFunctionInlineClass #this = it; +static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ { + lowered final self::GenericFunctionInlineClass /* = () → T% */ #this = it; return #this; } -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void { +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void { () → T% a1 = #this as{Unchecked} () → T%; () → T% a2 = #this as{Unchecked} () → T%; () → core::int a3 = (#this as{Unchecked} () → T%); @@ -459,15 +459,15 @@ Try correcting the name to the name of an existing getter, or defining a getter core::int e1 = (#this as{Unchecked} () → T%)(){() → core::int}; core::int e2 = (#this as{Unchecked} () → T%)(){() → core::int}; } -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass { - lowered final self::DynamicInlineClass #this = it; +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ { + lowered final self::DynamicInlineClass /* = dynamic */ #this = it; return #this; } -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void { +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void { dynamic a1 = #this as{Unchecked} dynamic; dynamic a2 = #this as{Unchecked} dynamic; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:72:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'. @@ -491,15 +491,15 @@ Try correcting the name to the name of an existing setter, or defining a setter dynamic d3 = (#this as{Unchecked} dynamic){dynamic}.call(); dynamic d4 = (#this as{Unchecked} dynamic){dynamic}.call(); } -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass { - lowered final self::ErroneousInlineClass #this = b; +static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ { + lowered final self::ErroneousInlineClass /* = core::int */ #this = b; return #this; } -static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void { +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; dynamic a3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:87:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'. @@ -575,9 +575,9 @@ Try correcting the name to the name of an existing getter, or defining a getter var e4 = b.call(); // Error ^" in #this{}.b{dynamic}.call(); } -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void { +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void { core::int a1 = inlineClass as{Unchecked} core::int; invalid-type a2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:118:26: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. Try changing the operand or remove the type arguments. @@ -694,13 +694,13 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass { - lowered final self2::PrivateInlineClass #this = _it; +static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass /* = core::int */ { + lowered final self2::PrivateInlineClass /* = core::int */ #this = _it; return #this; } -static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void { +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access_lib.dart:9:22: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -720,5 +720,5 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = _it = 42; // Error, should not resolve to extension method. ^^^" in #this{}._it = 42; } -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.strong.transformed.expect index 381d49be46e..00bb75e2c44 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.strong.transformed.expect @@ -337,13 +337,13 @@ extension type ErroneousInlineClass(core::int a) { tearoff • = self::ErroneousInlineClass|_#new#tearOff; } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void {} -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:15:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -363,15 +363,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = 42; // Error, should not resolve to extension method. ^^" in #this{}.it = 42; } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass { - lowered final self::GenericInlineClass #this = it; +static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ { + lowered final self::GenericInlineClass /* = self::GenericInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void { +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void { self::GenericInlineClass|test::T% a1 = #this as{Unchecked} self::GenericInlineClass|test::T%; self::GenericInlineClass|test::T% a2 = #this as{Unchecked} self::GenericInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:26:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'. @@ -391,15 +391,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = t; // Error, should not resolve to extension method. ^^" in #this{}.it = t; } -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass { - lowered final self::FunctionInlineClass #this = it; +static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ { + lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void { +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void { () → self::FunctionInlineClass|test::T% a1 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; () → self::FunctionInlineClass|test::T% a2 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:37:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'. @@ -423,15 +423,15 @@ Try correcting the name to the name of an existing setter, or defining a setter self::FunctionInlineClass|test::T% d3 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; self::FunctionInlineClass|test::T% d4 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; } -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass { - lowered final self::GenericFunctionInlineClass #this = it; +static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ { + lowered final self::GenericFunctionInlineClass /* = () → T% */ #this = it; return #this; } -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void { +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void { () → T% a1 = #this as{Unchecked} () → T%; () → T% a2 = #this as{Unchecked} () → T%; () → core::int a3 = (#this as{Unchecked} () → T%); @@ -459,15 +459,15 @@ Try correcting the name to the name of an existing getter, or defining a getter core::int e1 = (#this as{Unchecked} () → T%)(){() → core::int}; core::int e2 = (#this as{Unchecked} () → T%)(){() → core::int}; } -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass { - lowered final self::DynamicInlineClass #this = it; +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ { + lowered final self::DynamicInlineClass /* = dynamic */ #this = it; return #this; } -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void { +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void { dynamic a1 = #this as{Unchecked} dynamic; dynamic a2 = #this as{Unchecked} dynamic; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:72:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'. @@ -491,15 +491,15 @@ Try correcting the name to the name of an existing setter, or defining a setter dynamic d3 = (#this as{Unchecked} dynamic){dynamic}.call(); dynamic d4 = (#this as{Unchecked} dynamic){dynamic}.call(); } -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass { - lowered final self::ErroneousInlineClass #this = b; +static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ { + lowered final self::ErroneousInlineClass /* = core::int */ #this = b; return #this; } -static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void { +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; dynamic a3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:87:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'. @@ -575,9 +575,9 @@ Try correcting the name to the name of an existing getter, or defining a getter var e4 = b.call(); // Error ^" in #this{}.b{dynamic}.call(); } -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void { +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void { core::int a1 = inlineClass as{Unchecked} core::int; invalid-type a2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:118:26: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. Try changing the operand or remove the type arguments. @@ -694,13 +694,13 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass { - lowered final self2::PrivateInlineClass #this = _it; +static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass /* = core::int */ { + lowered final self2::PrivateInlineClass /* = core::int */ #this = _it; return #this; } -static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void { +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access_lib.dart:9:22: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -720,5 +720,5 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = _it = 42; // Error, should not resolve to extension method. ^^^" in #this{}._it = 42; } -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.expect index 381d49be46e..00bb75e2c44 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.expect @@ -337,13 +337,13 @@ extension type ErroneousInlineClass(core::int a) { tearoff • = self::ErroneousInlineClass|_#new#tearOff; } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void {} -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:15:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -363,15 +363,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = 42; // Error, should not resolve to extension method. ^^" in #this{}.it = 42; } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass { - lowered final self::GenericInlineClass #this = it; +static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ { + lowered final self::GenericInlineClass /* = self::GenericInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void { +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void { self::GenericInlineClass|test::T% a1 = #this as{Unchecked} self::GenericInlineClass|test::T%; self::GenericInlineClass|test::T% a2 = #this as{Unchecked} self::GenericInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:26:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'. @@ -391,15 +391,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = t; // Error, should not resolve to extension method. ^^" in #this{}.it = t; } -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass { - lowered final self::FunctionInlineClass #this = it; +static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ { + lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void { +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void { () → self::FunctionInlineClass|test::T% a1 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; () → self::FunctionInlineClass|test::T% a2 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:37:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'. @@ -423,15 +423,15 @@ Try correcting the name to the name of an existing setter, or defining a setter self::FunctionInlineClass|test::T% d3 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; self::FunctionInlineClass|test::T% d4 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; } -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass { - lowered final self::GenericFunctionInlineClass #this = it; +static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ { + lowered final self::GenericFunctionInlineClass /* = () → T% */ #this = it; return #this; } -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void { +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void { () → T% a1 = #this as{Unchecked} () → T%; () → T% a2 = #this as{Unchecked} () → T%; () → core::int a3 = (#this as{Unchecked} () → T%); @@ -459,15 +459,15 @@ Try correcting the name to the name of an existing getter, or defining a getter core::int e1 = (#this as{Unchecked} () → T%)(){() → core::int}; core::int e2 = (#this as{Unchecked} () → T%)(){() → core::int}; } -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass { - lowered final self::DynamicInlineClass #this = it; +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ { + lowered final self::DynamicInlineClass /* = dynamic */ #this = it; return #this; } -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void { +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void { dynamic a1 = #this as{Unchecked} dynamic; dynamic a2 = #this as{Unchecked} dynamic; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:72:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'. @@ -491,15 +491,15 @@ Try correcting the name to the name of an existing setter, or defining a setter dynamic d3 = (#this as{Unchecked} dynamic){dynamic}.call(); dynamic d4 = (#this as{Unchecked} dynamic){dynamic}.call(); } -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass { - lowered final self::ErroneousInlineClass #this = b; +static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ { + lowered final self::ErroneousInlineClass /* = core::int */ #this = b; return #this; } -static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void { +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; dynamic a3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:87:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'. @@ -575,9 +575,9 @@ Try correcting the name to the name of an existing getter, or defining a getter var e4 = b.call(); // Error ^" in #this{}.b{dynamic}.call(); } -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void { +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void { core::int a1 = inlineClass as{Unchecked} core::int; invalid-type a2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:118:26: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. Try changing the operand or remove the type arguments. @@ -694,13 +694,13 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass { - lowered final self2::PrivateInlineClass #this = _it; +static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass /* = core::int */ { + lowered final self2::PrivateInlineClass /* = core::int */ #this = _it; return #this; } -static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void { +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access_lib.dart:9:22: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -720,5 +720,5 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = _it = 42; // Error, should not resolve to extension method. ^^^" in #this{}._it = 42; } -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.modular.expect index 381d49be46e..00bb75e2c44 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.modular.expect @@ -337,13 +337,13 @@ extension type ErroneousInlineClass(core::int a) { tearoff • = self::ErroneousInlineClass|_#new#tearOff; } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void {} -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:15:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -363,15 +363,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = 42; // Error, should not resolve to extension method. ^^" in #this{}.it = 42; } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass { - lowered final self::GenericInlineClass #this = it; +static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ { + lowered final self::GenericInlineClass /* = self::GenericInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void { +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void { self::GenericInlineClass|test::T% a1 = #this as{Unchecked} self::GenericInlineClass|test::T%; self::GenericInlineClass|test::T% a2 = #this as{Unchecked} self::GenericInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:26:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'. @@ -391,15 +391,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = t; // Error, should not resolve to extension method. ^^" in #this{}.it = t; } -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass { - lowered final self::FunctionInlineClass #this = it; +static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ { + lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void { +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void { () → self::FunctionInlineClass|test::T% a1 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; () → self::FunctionInlineClass|test::T% a2 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:37:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'. @@ -423,15 +423,15 @@ Try correcting the name to the name of an existing setter, or defining a setter self::FunctionInlineClass|test::T% d3 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; self::FunctionInlineClass|test::T% d4 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; } -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass { - lowered final self::GenericFunctionInlineClass #this = it; +static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ { + lowered final self::GenericFunctionInlineClass /* = () → T% */ #this = it; return #this; } -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void { +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void { () → T% a1 = #this as{Unchecked} () → T%; () → T% a2 = #this as{Unchecked} () → T%; () → core::int a3 = (#this as{Unchecked} () → T%); @@ -459,15 +459,15 @@ Try correcting the name to the name of an existing getter, or defining a getter core::int e1 = (#this as{Unchecked} () → T%)(){() → core::int}; core::int e2 = (#this as{Unchecked} () → T%)(){() → core::int}; } -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass { - lowered final self::DynamicInlineClass #this = it; +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ { + lowered final self::DynamicInlineClass /* = dynamic */ #this = it; return #this; } -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void { +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void { dynamic a1 = #this as{Unchecked} dynamic; dynamic a2 = #this as{Unchecked} dynamic; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:72:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'. @@ -491,15 +491,15 @@ Try correcting the name to the name of an existing setter, or defining a setter dynamic d3 = (#this as{Unchecked} dynamic){dynamic}.call(); dynamic d4 = (#this as{Unchecked} dynamic){dynamic}.call(); } -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass { - lowered final self::ErroneousInlineClass #this = b; +static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ { + lowered final self::ErroneousInlineClass /* = core::int */ #this = b; return #this; } -static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void { +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; dynamic a3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:87:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'. @@ -575,9 +575,9 @@ Try correcting the name to the name of an existing getter, or defining a getter var e4 = b.call(); // Error ^" in #this{}.b{dynamic}.call(); } -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void { +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void { core::int a1 = inlineClass as{Unchecked} core::int; invalid-type a2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:118:26: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. Try changing the operand or remove the type arguments. @@ -694,13 +694,13 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass { - lowered final self2::PrivateInlineClass #this = _it; +static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass /* = core::int */ { + lowered final self2::PrivateInlineClass /* = core::int */ #this = _it; return #this; } -static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void { +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access_lib.dart:9:22: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -720,5 +720,5 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = _it = 42; // Error, should not resolve to extension method. ^^^" in #this{}._it = 42; } -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.outline.expect index fe3c52ca4e5..ae96c28d314 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.outline.expect @@ -45,55 +45,55 @@ extension type ErroneousInlineClass(core::int a) { } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void ; -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ ; -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void ; -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ ; -static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void ; -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ ; -static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void ; -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ ; -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void ; -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ ; -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void ; -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ ; -static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void ; -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void ; library; @@ -106,11 +106,11 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass /* = core::int */ ; -static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void ; -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.transformed.expect index 381d49be46e..00bb75e2c44 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/field_access.dart.weak.transformed.expect @@ -337,13 +337,13 @@ extension type ErroneousInlineClass(core::int a) { tearoff • = self::ErroneousInlineClass|_#new#tearOff; } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void {} -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:15:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -363,15 +363,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = 42; // Error, should not resolve to extension method. ^^" in #this{}.it = 42; } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass { - lowered final self::GenericInlineClass #this = it; +static inline-class-member method GenericInlineClass|(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ { + lowered final self::GenericInlineClass /* = self::GenericInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(dynamic it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void { +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void { self::GenericInlineClass|test::T% a1 = #this as{Unchecked} self::GenericInlineClass|test::T%; self::GenericInlineClass|test::T% a2 = #this as{Unchecked} self::GenericInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:26:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'. @@ -391,15 +391,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = t; // Error, should not resolve to extension method. ^^" in #this{}.it = t; } -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass { - lowered final self::FunctionInlineClass #this = it; +static inline-class-member method FunctionInlineClass|(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ { + lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(dynamic it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void { +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void { () → self::FunctionInlineClass|test::T% a1 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; () → self::FunctionInlineClass|test::T% a2 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:37:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'. @@ -423,15 +423,15 @@ Try correcting the name to the name of an existing setter, or defining a setter self::FunctionInlineClass|test::T% d3 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; self::FunctionInlineClass|test::T% d4 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; } -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass { - lowered final self::GenericFunctionInlineClass #this = it; +static inline-class-member method GenericFunctionInlineClass|(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ { + lowered final self::GenericFunctionInlineClass /* = () → T% */ #this = it; return #this; } -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void { +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void { () → T% a1 = #this as{Unchecked} () → T%; () → T% a2 = #this as{Unchecked} () → T%; () → core::int a3 = (#this as{Unchecked} () → T%); @@ -459,15 +459,15 @@ Try correcting the name to the name of an existing getter, or defining a getter core::int e1 = (#this as{Unchecked} () → T%)(){() → core::int}; core::int e2 = (#this as{Unchecked} () → T%)(){() → core::int}; } -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass { - lowered final self::DynamicInlineClass #this = it; +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ { + lowered final self::DynamicInlineClass /* = dynamic */ #this = it; return #this; } -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void { +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void { dynamic a1 = #this as{Unchecked} dynamic; dynamic a2 = #this as{Unchecked} dynamic; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:72:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'. @@ -491,15 +491,15 @@ Try correcting the name to the name of an existing setter, or defining a setter dynamic d3 = (#this as{Unchecked} dynamic){dynamic}.call(); dynamic d4 = (#this as{Unchecked} dynamic){dynamic}.call(); } -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass { - lowered final self::ErroneousInlineClass #this = b; +static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ { + lowered final self::ErroneousInlineClass /* = core::int */ #this = b; return #this; } -static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void { +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; dynamic a3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:87:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'. @@ -575,9 +575,9 @@ Try correcting the name to the name of an existing getter, or defining a getter var e4 = b.call(); // Error ^" in #this{}.b{dynamic}.call(); } -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void { +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void { core::int a1 = inlineClass as{Unchecked} core::int; invalid-type a2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:118:26: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. Try changing the operand or remove the type arguments. @@ -694,13 +694,13 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass { - lowered final self2::PrivateInlineClass #this = _it; +static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass /* = core::int */ { + lowered final self2::PrivateInlineClass /* = core::int */ #this = _it; return #this; } -static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void { +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access_lib.dart:9:22: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -720,5 +720,5 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = _it = 42; // Error, should not resolve to extension method. ^^^" in #this{}._it = 42; } -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.strong.expect index d228260192a..05d1aa971d5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.strong.expect @@ -15,7 +15,7 @@ import "dart:core" as core; import "org-dartlang-testcase:///main_lib2.dart"; static method main() → dynamic { - mai2::ExtensionType e1 = mai2::ExtensionType|(42); + mai2::ExtensionType /* = core::int */ e1 = mai2::ExtensionType|(42); mai::expect(42, mai2::ExtensionType|instanceMethod(e1)); mai::expect(42, mai2::ExtensionType|get#instanceMethod(e1)(){() → core::int}); mai::expect(43, mai2::ExtensionType|+(e1, 1)); @@ -29,15 +29,15 @@ static method main() → dynamic { mai2::ExtensionType|staticSetter = 124; mai::expect(124, mai2::ExtensionType|staticField); mai::expect(124, mai2::ExtensionType|staticGetter); - mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType}); + mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType /* = core::int */}); mai::expect(43, mai2::ExtensionType|named(42)); - mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType}); + mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(44, mai2::ExtensionType|redirectingGenerative(42)); - mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType}); + mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(45, mai2::ExtensionType|fact(42)); - mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType}); + mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(42, mai2::ExtensionType|(42)); - mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType}); + mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType /* = core::int */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) @@ -70,42 +70,42 @@ extension type ExtensionType(core::int it) { static tearoff redirectingFactory = mai2::ExtensionType|_#redirectingFactory#tearOff; } static field core::int ExtensionType|staticField = 123; -static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|named(it); -static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this; +static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this; #this = mai2::ExtensionType|(it.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|redirectingGenerative(it); -static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it.{core::num::+}(3){(core::num) → core::int}); -static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|fact(it); -static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* redirection-target: mai2::ExtensionType| */ +static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* = core::int */ /* redirection-target: mai2::ExtensionType| */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType #this) → () → core::int +static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → () → core::int return () → core::int => mai2::ExtensionType|instanceMethod(#this); -static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType #this, core::int i) → core::int +static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType /* = core::int */ #this, core::int i) → core::int return (#this as{Unchecked} core::int).{core::num::+}(i){(core::num) → core::int}; -static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType #this, core::int value) → void {} +static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType /* = core::int */ #this, core::int value) → void {} static inline-class-member method ExtensionType|staticMethod() → core::int return 87; static inline-class-member get ExtensionType|staticGetter() → core::int diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.strong.transformed.expect index d228260192a..05d1aa971d5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.strong.transformed.expect @@ -15,7 +15,7 @@ import "dart:core" as core; import "org-dartlang-testcase:///main_lib2.dart"; static method main() → dynamic { - mai2::ExtensionType e1 = mai2::ExtensionType|(42); + mai2::ExtensionType /* = core::int */ e1 = mai2::ExtensionType|(42); mai::expect(42, mai2::ExtensionType|instanceMethod(e1)); mai::expect(42, mai2::ExtensionType|get#instanceMethod(e1)(){() → core::int}); mai::expect(43, mai2::ExtensionType|+(e1, 1)); @@ -29,15 +29,15 @@ static method main() → dynamic { mai2::ExtensionType|staticSetter = 124; mai::expect(124, mai2::ExtensionType|staticField); mai::expect(124, mai2::ExtensionType|staticGetter); - mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType}); + mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType /* = core::int */}); mai::expect(43, mai2::ExtensionType|named(42)); - mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType}); + mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(44, mai2::ExtensionType|redirectingGenerative(42)); - mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType}); + mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(45, mai2::ExtensionType|fact(42)); - mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType}); + mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(42, mai2::ExtensionType|(42)); - mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType}); + mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType /* = core::int */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) @@ -70,42 +70,42 @@ extension type ExtensionType(core::int it) { static tearoff redirectingFactory = mai2::ExtensionType|_#redirectingFactory#tearOff; } static field core::int ExtensionType|staticField = 123; -static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|named(it); -static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this; +static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this; #this = mai2::ExtensionType|(it.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|redirectingGenerative(it); -static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it.{core::num::+}(3){(core::num) → core::int}); -static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|fact(it); -static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* redirection-target: mai2::ExtensionType| */ +static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* = core::int */ /* redirection-target: mai2::ExtensionType| */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType #this) → () → core::int +static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → () → core::int return () → core::int => mai2::ExtensionType|instanceMethod(#this); -static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType #this, core::int i) → core::int +static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType /* = core::int */ #this, core::int i) → core::int return (#this as{Unchecked} core::int).{core::num::+}(i){(core::num) → core::int}; -static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType #this, core::int value) → void {} +static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType /* = core::int */ #this, core::int value) → void {} static inline-class-member method ExtensionType|staticMethod() → core::int return 87; static inline-class-member get ExtensionType|staticGetter() → core::int diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.expect index d228260192a..05d1aa971d5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.expect @@ -15,7 +15,7 @@ import "dart:core" as core; import "org-dartlang-testcase:///main_lib2.dart"; static method main() → dynamic { - mai2::ExtensionType e1 = mai2::ExtensionType|(42); + mai2::ExtensionType /* = core::int */ e1 = mai2::ExtensionType|(42); mai::expect(42, mai2::ExtensionType|instanceMethod(e1)); mai::expect(42, mai2::ExtensionType|get#instanceMethod(e1)(){() → core::int}); mai::expect(43, mai2::ExtensionType|+(e1, 1)); @@ -29,15 +29,15 @@ static method main() → dynamic { mai2::ExtensionType|staticSetter = 124; mai::expect(124, mai2::ExtensionType|staticField); mai::expect(124, mai2::ExtensionType|staticGetter); - mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType}); + mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType /* = core::int */}); mai::expect(43, mai2::ExtensionType|named(42)); - mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType}); + mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(44, mai2::ExtensionType|redirectingGenerative(42)); - mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType}); + mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(45, mai2::ExtensionType|fact(42)); - mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType}); + mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(42, mai2::ExtensionType|(42)); - mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType}); + mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType /* = core::int */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) @@ -70,42 +70,42 @@ extension type ExtensionType(core::int it) { static tearoff redirectingFactory = mai2::ExtensionType|_#redirectingFactory#tearOff; } static field core::int ExtensionType|staticField = 123; -static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|named(it); -static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this; +static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this; #this = mai2::ExtensionType|(it.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|redirectingGenerative(it); -static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it.{core::num::+}(3){(core::num) → core::int}); -static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|fact(it); -static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* redirection-target: mai2::ExtensionType| */ +static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* = core::int */ /* redirection-target: mai2::ExtensionType| */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType #this) → () → core::int +static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → () → core::int return () → core::int => mai2::ExtensionType|instanceMethod(#this); -static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType #this, core::int i) → core::int +static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType /* = core::int */ #this, core::int i) → core::int return (#this as{Unchecked} core::int).{core::num::+}(i){(core::num) → core::int}; -static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType #this, core::int value) → void {} +static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType /* = core::int */ #this, core::int value) → void {} static inline-class-member method ExtensionType|staticMethod() → core::int return 87; static inline-class-member get ExtensionType|staticGetter() → core::int diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.modular.expect index 668167a0fa3..d1413afe988 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.modular.expect @@ -15,7 +15,7 @@ import "dart:core" as core; import "org-dartlang-testcase:///main_lib2.dart"; static method main() → dynamic { - mai2::ExtensionType e1 = mai2::ExtensionType|(42); + mai2::ExtensionType /* = core::int */ e1 = mai2::ExtensionType|(42); mai::expect(42, mai2::ExtensionType|instanceMethod(e1)); mai::expect(42, mai2::ExtensionType|get#instanceMethod(e1)(){() → core::int}); mai::expect(43, mai2::ExtensionType|+(e1, 1)); @@ -29,15 +29,15 @@ static method main() → dynamic { mai2::ExtensionType|staticSetter = 124; mai::expect(124, mai2::ExtensionType|staticField); mai::expect(124, mai2::ExtensionType|staticGetter); - mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType}); + mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType /* = core::int */}); mai::expect(43, mai2::ExtensionType|named(42)); - mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType}); + mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(44, mai2::ExtensionType|redirectingGenerative(42)); - mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType}); + mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(45, mai2::ExtensionType|fact(42)); - mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType}); + mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(42, mai2::ExtensionType|(42)); - mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType}); + mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType /* = core::int */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.outline.expect index 25bdee2cc53..c4384a426c5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.outline.expect @@ -43,35 +43,35 @@ extension type ExtensionType(core::int it) { static tearoff redirectingFactory = self2::ExtensionType|_#redirectingFactory#tearOff; } static field core::int ExtensionType|staticField; -static inline-class-member method ExtensionType|(dynamic it) → self2::ExtensionType +static inline-class-member method ExtensionType|(dynamic it) → self2::ExtensionType /* = core::int */ ; -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self2::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self2::ExtensionType /* = core::int */ return self2::ExtensionType|(it); -static inline-class-member method ExtensionType|named(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|named(core::int it) → self2::ExtensionType /* = core::int */ ; -static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → self2::ExtensionType /* = core::int */ return self2::ExtensionType|named(it); -static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → self2::ExtensionType /* = core::int */ ; -static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → self2::ExtensionType /* = core::int */ return self2::ExtensionType|redirectingGenerative(it); -static inline-class-member method ExtensionType|fact(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|fact(core::int it) → self2::ExtensionType /* = core::int */ ; -static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → self2::ExtensionType /* = core::int */ return self2::ExtensionType|fact(it); -static inline-class-member method ExtensionType|redirectingFactory(core::int it) → self2::ExtensionType /* redirection-target: self2::ExtensionType| */ +static inline-class-member method ExtensionType|redirectingFactory(core::int it) → self2::ExtensionType /* = core::int */ /* redirection-target: self2::ExtensionType| */ return self2::ExtensionType|(it); -static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → self2::ExtensionType /* = core::int */ return self2::ExtensionType|(it); -static inline-class-member method ExtensionType|instanceMethod(lowered final self2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|instanceMethod(lowered final self2::ExtensionType /* = core::int */ #this) → core::int ; -static inline-class-member method ExtensionType|get#instanceMethod(lowered final self2::ExtensionType #this) → () → core::int +static inline-class-member method ExtensionType|get#instanceMethod(lowered final self2::ExtensionType /* = core::int */ #this) → () → core::int return () → core::int => self2::ExtensionType|instanceMethod(#this); -static inline-class-member method ExtensionType|+(lowered final self2::ExtensionType #this, core::int i) → core::int +static inline-class-member method ExtensionType|+(lowered final self2::ExtensionType /* = core::int */ #this, core::int i) → core::int ; -static inline-class-member method ExtensionType|get#instanceGetter(lowered final self2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|get#instanceGetter(lowered final self2::ExtensionType /* = core::int */ #this) → core::int ; -static inline-class-member method ExtensionType|set#instanceSetter(lowered final self2::ExtensionType #this, core::int value) → void +static inline-class-member method ExtensionType|set#instanceSetter(lowered final self2::ExtensionType /* = core::int */ #this, core::int value) → void ; static inline-class-member method ExtensionType|staticMethod() → core::int ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.transformed.expect index d228260192a..05d1aa971d5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.dart.weak.transformed.expect @@ -15,7 +15,7 @@ import "dart:core" as core; import "org-dartlang-testcase:///main_lib2.dart"; static method main() → dynamic { - mai2::ExtensionType e1 = mai2::ExtensionType|(42); + mai2::ExtensionType /* = core::int */ e1 = mai2::ExtensionType|(42); mai::expect(42, mai2::ExtensionType|instanceMethod(e1)); mai::expect(42, mai2::ExtensionType|get#instanceMethod(e1)(){() → core::int}); mai::expect(43, mai2::ExtensionType|+(e1, 1)); @@ -29,15 +29,15 @@ static method main() → dynamic { mai2::ExtensionType|staticSetter = 124; mai::expect(124, mai2::ExtensionType|staticField); mai::expect(124, mai2::ExtensionType|staticGetter); - mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType}); + mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType /* = core::int */}); mai::expect(43, mai2::ExtensionType|named(42)); - mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType}); + mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(44, mai2::ExtensionType|redirectingGenerative(42)); - mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType}); + mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(45, mai2::ExtensionType|fact(42)); - mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType}); + mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(42, mai2::ExtensionType|(42)); - mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType}); + mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType /* = core::int */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) @@ -70,42 +70,42 @@ extension type ExtensionType(core::int it) { static tearoff redirectingFactory = mai2::ExtensionType|_#redirectingFactory#tearOff; } static field core::int ExtensionType|staticField = 123; -static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|named(it); -static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this; +static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this; #this = mai2::ExtensionType|(it.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|redirectingGenerative(it); -static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it.{core::num::+}(3){(core::num) → core::int}); -static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|fact(it); -static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* redirection-target: mai2::ExtensionType| */ +static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* = core::int */ /* redirection-target: mai2::ExtensionType| */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType #this) → () → core::int +static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → () → core::int return () → core::int => mai2::ExtensionType|instanceMethod(#this); -static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType #this, core::int i) → core::int +static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType /* = core::int */ #this, core::int i) → core::int return (#this as{Unchecked} core::int).{core::num::+}(i){(core::num) → core::int}; -static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType #this, core::int value) → void {} +static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType /* = core::int */ #this, core::int value) → void {} static inline-class-member method ExtensionType|staticMethod() → core::int return 87; static inline-class-member get ExtensionType|staticGetter() → core::int diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.strong.expect index d228260192a..05d1aa971d5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.strong.expect @@ -15,7 +15,7 @@ import "dart:core" as core; import "org-dartlang-testcase:///main_lib2.dart"; static method main() → dynamic { - mai2::ExtensionType e1 = mai2::ExtensionType|(42); + mai2::ExtensionType /* = core::int */ e1 = mai2::ExtensionType|(42); mai::expect(42, mai2::ExtensionType|instanceMethod(e1)); mai::expect(42, mai2::ExtensionType|get#instanceMethod(e1)(){() → core::int}); mai::expect(43, mai2::ExtensionType|+(e1, 1)); @@ -29,15 +29,15 @@ static method main() → dynamic { mai2::ExtensionType|staticSetter = 124; mai::expect(124, mai2::ExtensionType|staticField); mai::expect(124, mai2::ExtensionType|staticGetter); - mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType}); + mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType /* = core::int */}); mai::expect(43, mai2::ExtensionType|named(42)); - mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType}); + mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(44, mai2::ExtensionType|redirectingGenerative(42)); - mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType}); + mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(45, mai2::ExtensionType|fact(42)); - mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType}); + mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(42, mai2::ExtensionType|(42)); - mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType}); + mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType /* = core::int */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) @@ -70,42 +70,42 @@ extension type ExtensionType(core::int it) { static tearoff redirectingFactory = mai2::ExtensionType|_#redirectingFactory#tearOff; } static field core::int ExtensionType|staticField = 123; -static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|named(it); -static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this; +static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this; #this = mai2::ExtensionType|(it.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|redirectingGenerative(it); -static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it.{core::num::+}(3){(core::num) → core::int}); -static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|fact(it); -static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* redirection-target: mai2::ExtensionType| */ +static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* = core::int */ /* redirection-target: mai2::ExtensionType| */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType #this) → () → core::int +static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → () → core::int return () → core::int => mai2::ExtensionType|instanceMethod(#this); -static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType #this, core::int i) → core::int +static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType /* = core::int */ #this, core::int i) → core::int return (#this as{Unchecked} core::int).{core::num::+}(i){(core::num) → core::int}; -static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType #this, core::int value) → void {} +static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType /* = core::int */ #this, core::int value) → void {} static inline-class-member method ExtensionType|staticMethod() → core::int return 87; static inline-class-member get ExtensionType|staticGetter() → core::int diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.strong.transformed.expect index d228260192a..05d1aa971d5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.strong.transformed.expect @@ -15,7 +15,7 @@ import "dart:core" as core; import "org-dartlang-testcase:///main_lib2.dart"; static method main() → dynamic { - mai2::ExtensionType e1 = mai2::ExtensionType|(42); + mai2::ExtensionType /* = core::int */ e1 = mai2::ExtensionType|(42); mai::expect(42, mai2::ExtensionType|instanceMethod(e1)); mai::expect(42, mai2::ExtensionType|get#instanceMethod(e1)(){() → core::int}); mai::expect(43, mai2::ExtensionType|+(e1, 1)); @@ -29,15 +29,15 @@ static method main() → dynamic { mai2::ExtensionType|staticSetter = 124; mai::expect(124, mai2::ExtensionType|staticField); mai::expect(124, mai2::ExtensionType|staticGetter); - mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType}); + mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType /* = core::int */}); mai::expect(43, mai2::ExtensionType|named(42)); - mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType}); + mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(44, mai2::ExtensionType|redirectingGenerative(42)); - mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType}); + mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(45, mai2::ExtensionType|fact(42)); - mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType}); + mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(42, mai2::ExtensionType|(42)); - mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType}); + mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType /* = core::int */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) @@ -70,42 +70,42 @@ extension type ExtensionType(core::int it) { static tearoff redirectingFactory = mai2::ExtensionType|_#redirectingFactory#tearOff; } static field core::int ExtensionType|staticField = 123; -static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|named(it); -static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this; +static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this; #this = mai2::ExtensionType|(it.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|redirectingGenerative(it); -static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it.{core::num::+}(3){(core::num) → core::int}); -static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|fact(it); -static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* redirection-target: mai2::ExtensionType| */ +static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* = core::int */ /* redirection-target: mai2::ExtensionType| */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType #this) → () → core::int +static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → () → core::int return () → core::int => mai2::ExtensionType|instanceMethod(#this); -static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType #this, core::int i) → core::int +static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType /* = core::int */ #this, core::int i) → core::int return (#this as{Unchecked} core::int).{core::num::+}(i){(core::num) → core::int}; -static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType #this, core::int value) → void {} +static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType /* = core::int */ #this, core::int value) → void {} static inline-class-member method ExtensionType|staticMethod() → core::int return 87; static inline-class-member get ExtensionType|staticGetter() → core::int diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.expect index d228260192a..05d1aa971d5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.expect @@ -15,7 +15,7 @@ import "dart:core" as core; import "org-dartlang-testcase:///main_lib2.dart"; static method main() → dynamic { - mai2::ExtensionType e1 = mai2::ExtensionType|(42); + mai2::ExtensionType /* = core::int */ e1 = mai2::ExtensionType|(42); mai::expect(42, mai2::ExtensionType|instanceMethod(e1)); mai::expect(42, mai2::ExtensionType|get#instanceMethod(e1)(){() → core::int}); mai::expect(43, mai2::ExtensionType|+(e1, 1)); @@ -29,15 +29,15 @@ static method main() → dynamic { mai2::ExtensionType|staticSetter = 124; mai::expect(124, mai2::ExtensionType|staticField); mai::expect(124, mai2::ExtensionType|staticGetter); - mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType}); + mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType /* = core::int */}); mai::expect(43, mai2::ExtensionType|named(42)); - mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType}); + mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(44, mai2::ExtensionType|redirectingGenerative(42)); - mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType}); + mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(45, mai2::ExtensionType|fact(42)); - mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType}); + mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(42, mai2::ExtensionType|(42)); - mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType}); + mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType /* = core::int */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) @@ -70,42 +70,42 @@ extension type ExtensionType(core::int it) { static tearoff redirectingFactory = mai2::ExtensionType|_#redirectingFactory#tearOff; } static field core::int ExtensionType|staticField = 123; -static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|named(it); -static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this; +static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this; #this = mai2::ExtensionType|(it.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|redirectingGenerative(it); -static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it.{core::num::+}(3){(core::num) → core::int}); -static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|fact(it); -static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* redirection-target: mai2::ExtensionType| */ +static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* = core::int */ /* redirection-target: mai2::ExtensionType| */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType #this) → () → core::int +static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → () → core::int return () → core::int => mai2::ExtensionType|instanceMethod(#this); -static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType #this, core::int i) → core::int +static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType /* = core::int */ #this, core::int i) → core::int return (#this as{Unchecked} core::int).{core::num::+}(i){(core::num) → core::int}; -static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType #this, core::int value) → void {} +static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType /* = core::int */ #this, core::int value) → void {} static inline-class-member method ExtensionType|staticMethod() → core::int return 87; static inline-class-member get ExtensionType|staticGetter() → core::int diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.modular.expect index d228260192a..05d1aa971d5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.modular.expect @@ -15,7 +15,7 @@ import "dart:core" as core; import "org-dartlang-testcase:///main_lib2.dart"; static method main() → dynamic { - mai2::ExtensionType e1 = mai2::ExtensionType|(42); + mai2::ExtensionType /* = core::int */ e1 = mai2::ExtensionType|(42); mai::expect(42, mai2::ExtensionType|instanceMethod(e1)); mai::expect(42, mai2::ExtensionType|get#instanceMethod(e1)(){() → core::int}); mai::expect(43, mai2::ExtensionType|+(e1, 1)); @@ -29,15 +29,15 @@ static method main() → dynamic { mai2::ExtensionType|staticSetter = 124; mai::expect(124, mai2::ExtensionType|staticField); mai::expect(124, mai2::ExtensionType|staticGetter); - mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType}); + mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType /* = core::int */}); mai::expect(43, mai2::ExtensionType|named(42)); - mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType}); + mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(44, mai2::ExtensionType|redirectingGenerative(42)); - mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType}); + mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(45, mai2::ExtensionType|fact(42)); - mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType}); + mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(42, mai2::ExtensionType|(42)); - mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType}); + mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType /* = core::int */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) @@ -70,42 +70,42 @@ extension type ExtensionType(core::int it) { static tearoff redirectingFactory = mai2::ExtensionType|_#redirectingFactory#tearOff; } static field core::int ExtensionType|staticField = 123; -static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|named(it); -static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this; +static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this; #this = mai2::ExtensionType|(it.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|redirectingGenerative(it); -static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it.{core::num::+}(3){(core::num) → core::int}); -static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|fact(it); -static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* redirection-target: mai2::ExtensionType| */ +static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* = core::int */ /* redirection-target: mai2::ExtensionType| */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType #this) → () → core::int +static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → () → core::int return () → core::int => mai2::ExtensionType|instanceMethod(#this); -static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType #this, core::int i) → core::int +static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType /* = core::int */ #this, core::int i) → core::int return (#this as{Unchecked} core::int).{core::num::+}(i){(core::num) → core::int}; -static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType #this, core::int value) → void {} +static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType /* = core::int */ #this, core::int value) → void {} static inline-class-member method ExtensionType|staticMethod() → core::int return 87; static inline-class-member get ExtensionType|staticGetter() → core::int diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.outline.expect index 25bdee2cc53..c4384a426c5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.outline.expect @@ -43,35 +43,35 @@ extension type ExtensionType(core::int it) { static tearoff redirectingFactory = self2::ExtensionType|_#redirectingFactory#tearOff; } static field core::int ExtensionType|staticField; -static inline-class-member method ExtensionType|(dynamic it) → self2::ExtensionType +static inline-class-member method ExtensionType|(dynamic it) → self2::ExtensionType /* = core::int */ ; -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self2::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self2::ExtensionType /* = core::int */ return self2::ExtensionType|(it); -static inline-class-member method ExtensionType|named(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|named(core::int it) → self2::ExtensionType /* = core::int */ ; -static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → self2::ExtensionType /* = core::int */ return self2::ExtensionType|named(it); -static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → self2::ExtensionType /* = core::int */ ; -static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → self2::ExtensionType /* = core::int */ return self2::ExtensionType|redirectingGenerative(it); -static inline-class-member method ExtensionType|fact(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|fact(core::int it) → self2::ExtensionType /* = core::int */ ; -static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → self2::ExtensionType /* = core::int */ return self2::ExtensionType|fact(it); -static inline-class-member method ExtensionType|redirectingFactory(core::int it) → self2::ExtensionType /* redirection-target: self2::ExtensionType| */ +static inline-class-member method ExtensionType|redirectingFactory(core::int it) → self2::ExtensionType /* = core::int */ /* redirection-target: self2::ExtensionType| */ return self2::ExtensionType|(it); -static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → self2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → self2::ExtensionType /* = core::int */ return self2::ExtensionType|(it); -static inline-class-member method ExtensionType|instanceMethod(lowered final self2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|instanceMethod(lowered final self2::ExtensionType /* = core::int */ #this) → core::int ; -static inline-class-member method ExtensionType|get#instanceMethod(lowered final self2::ExtensionType #this) → () → core::int +static inline-class-member method ExtensionType|get#instanceMethod(lowered final self2::ExtensionType /* = core::int */ #this) → () → core::int return () → core::int => self2::ExtensionType|instanceMethod(#this); -static inline-class-member method ExtensionType|+(lowered final self2::ExtensionType #this, core::int i) → core::int +static inline-class-member method ExtensionType|+(lowered final self2::ExtensionType /* = core::int */ #this, core::int i) → core::int ; -static inline-class-member method ExtensionType|get#instanceGetter(lowered final self2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|get#instanceGetter(lowered final self2::ExtensionType /* = core::int */ #this) → core::int ; -static inline-class-member method ExtensionType|set#instanceSetter(lowered final self2::ExtensionType #this, core::int value) → void +static inline-class-member method ExtensionType|set#instanceSetter(lowered final self2::ExtensionType /* = core::int */ #this, core::int value) → void ; static inline-class-member method ExtensionType|staticMethod() → core::int ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.transformed.expect index d228260192a..05d1aa971d5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/from_dill/main.no_link.dart.weak.transformed.expect @@ -15,7 +15,7 @@ import "dart:core" as core; import "org-dartlang-testcase:///main_lib2.dart"; static method main() → dynamic { - mai2::ExtensionType e1 = mai2::ExtensionType|(42); + mai2::ExtensionType /* = core::int */ e1 = mai2::ExtensionType|(42); mai::expect(42, mai2::ExtensionType|instanceMethod(e1)); mai::expect(42, mai2::ExtensionType|get#instanceMethod(e1)(){() → core::int}); mai::expect(43, mai2::ExtensionType|+(e1, 1)); @@ -29,15 +29,15 @@ static method main() → dynamic { mai2::ExtensionType|staticSetter = 124; mai::expect(124, mai2::ExtensionType|staticField); mai::expect(124, mai2::ExtensionType|staticGetter); - mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType}); + mai::expect(42, #C2(42){(dynamic) → mai2::ExtensionType /* = core::int */}); mai::expect(43, mai2::ExtensionType|named(42)); - mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType}); + mai::expect(43, #C3(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(44, mai2::ExtensionType|redirectingGenerative(42)); - mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType}); + mai::expect(44, #C4(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(45, mai2::ExtensionType|fact(42)); - mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType}); + mai::expect(45, #C5(42){(core::int) → mai2::ExtensionType /* = core::int */}); mai::expect(42, mai2::ExtensionType|(42)); - mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType}); + mai::expect(42, #C6(42){(core::int) → mai2::ExtensionType /* = core::int */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) @@ -70,42 +70,42 @@ extension type ExtensionType(core::int it) { static tearoff redirectingFactory = mai2::ExtensionType|_#redirectingFactory#tearOff; } static field core::int ExtensionType|staticField = 123; -static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this = it.{core::num::+}(1){(core::num) → core::int}; +static inline-class-member method ExtensionType|named(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this = it.{core::num::+}(1){(core::num) → core::int}; return #this; } -static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#named#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|named(it); -static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType { - lowered final mai2::ExtensionType #this; +static inline-class-member method ExtensionType|redirectingGenerative(core::int it) → mai2::ExtensionType /* = core::int */ { + lowered final mai2::ExtensionType /* = core::int */ #this; #this = mai2::ExtensionType|(it.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingGenerative#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|redirectingGenerative(it); -static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|fact(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it.{core::num::+}(3){(core::num) → core::int}); -static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#fact#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|fact(it); -static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* redirection-target: mai2::ExtensionType| */ +static inline-class-member method ExtensionType|redirectingFactory(core::int it) → mai2::ExtensionType /* = core::int */ /* redirection-target: mai2::ExtensionType| */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType +static inline-class-member method ExtensionType|_#redirectingFactory#tearOff(core::int it) → mai2::ExtensionType /* = core::int */ return mai2::ExtensionType|(it); -static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType #this) → () → core::int +static inline-class-member method ExtensionType|get#instanceMethod(lowered final mai2::ExtensionType /* = core::int */ #this) → () → core::int return () → core::int => mai2::ExtensionType|instanceMethod(#this); -static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType #this, core::int i) → core::int +static inline-class-member method ExtensionType|+(lowered final mai2::ExtensionType /* = core::int */ #this, core::int i) → core::int return (#this as{Unchecked} core::int).{core::num::+}(i){(core::num) → core::int}; -static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType #this) → core::int +static inline-class-member method ExtensionType|get#instanceGetter(lowered final mai2::ExtensionType /* = core::int */ #this) → core::int return #this as{Unchecked} core::int; -static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType #this, core::int value) → void {} +static inline-class-member method ExtensionType|set#instanceSetter(lowered final mai2::ExtensionType /* = core::int */ #this, core::int value) → void {} static inline-class-member method ExtensionType|staticMethod() → core::int return 87; static inline-class-member get ExtensionType|staticGetter() → core::int diff --git a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.strong.expect index 3b8f74ab355..8205e714c17 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.strong.expect @@ -16,9 +16,9 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C { - lowered final has::C #this = i; +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C /* = core::int */ { + lowered final has::C /* = core::int */ #this = i; return #this; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.strong.transformed.expect index 3b8f74ab355..8205e714c17 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.strong.transformed.expect @@ -16,9 +16,9 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C { - lowered final has::C #this = i; +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C /* = core::int */ { + lowered final has::C /* = core::int */ #this = i; return #this; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.expect index 3b8f74ab355..8205e714c17 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.expect @@ -16,9 +16,9 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C { - lowered final has::C #this = i; +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C /* = core::int */ { + lowered final has::C /* = core::int */ #this = i; return #this; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.modular.expect index 3b8f74ab355..8205e714c17 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.modular.expect @@ -16,9 +16,9 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C { - lowered final has::C #this = i; +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C /* = core::int */ { + lowered final has::C /* = core::int */ #this = i; return #this; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.outline.expect index c1792911a17..181c1bb8efe 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.outline.expect @@ -17,7 +17,7 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C /* = core::int */ ; -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.transformed.expect index 3b8f74ab355..8205e714c17 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/has_export.dart.weak.transformed.expect @@ -16,9 +16,9 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C { - lowered final has::C #this = i; +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(dynamic i) → has::C /* = core::int */ { + lowered final has::C /* = core::int */ #this = i; return #this; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(dynamic i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.strong.expect index 0f251c09c8f..2df0ca39fcd 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.strong.expect @@ -91,7 +91,7 @@ import "dart:async"; typedef RecordType = (core::int, core::String); typedef FunctionType = () → void; typedef NullableInterfaceType = core::String?; -typedef NullableExtensionType = self::ExtensionType?; +typedef NullableExtensionType = self::ExtensionType? /* = core::int? */; typedef Alias = self::Class; typedef GenericAlias = self::GenericClass; class Class extends core::Object { @@ -154,7 +154,7 @@ extension type ET_NullableInterfaceType(core::String? it) { constructor • = self::ET_NullableInterfaceType|; tearoff • = self::ET_NullableInterfaceType|_#new#tearOff; } -extension type ET_NullableExtensionType(self::ExtensionType? it) { +extension type ET_NullableExtensionType(self::ExtensionType? /* = core::int? */ it) { constructor • = self::ET_NullableExtensionType|; tearoff • = self::ET_NullableExtensionType|_#new#tearOff; } @@ -186,143 +186,143 @@ extension type ET_GenericAlias(self::GenericC constructor • = self::ET_GenericAlias|; tearoff • = self::ET_GenericAlias|_#new#tearOff; } -extension type ET_ExtensionType(self::ExtensionType it) implements self::ExtensionType { +extension type ET_ExtensionType(self::ExtensionType /* = core::int */ it) implements self::ExtensionType /* = core::int */ { constructor • = self::ET_ExtensionType|; tearoff • = self::ET_ExtensionType|_#new#tearOff; } -extension type ET_GenericExtensionType(self::GenericExtensionType it) implements self::GenericExtensionType { +extension type ET_GenericExtensionType(self::GenericExtensionType /* = T% */ it) implements self::GenericExtensionType /* = T% */ { constructor • = self::ET_GenericExtensionType|; tearoff • = self::ET_GenericExtensionType|_#new#tearOff; } -static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType { - lowered final self::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType /* = core::int */ { + lowered final self::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType /* = core::int */ return self::ExtensionType|(it); -static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType { - lowered final self::GenericExtensionType #this = it; +static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|::T% */ { + lowered final self::GenericExtensionType /* = self::GenericExtensionType|::T% */ #this = it; return #this; } -static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType +static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|_#new#tearOff::T% */ return self::GenericExtensionType|(it); -static inline-class-member method ET_Null|(dynamic it) → self::ET_Null { - lowered final self::ET_Null #this = it; +static inline-class-member method ET_Null|(dynamic it) → self::ET_Null /* = Null */ { + lowered final self::ET_Null /* = Null */ #this = it; return #this; } -static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null +static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null /* = Null */ return self::ET_Null|(it); -static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic { - lowered final self::ET_Dynamic #this = it; +static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic /* = dynamic */ { + lowered final self::ET_Dynamic /* = dynamic */ #this = it; return #this; } -static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic +static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic /* = dynamic */ return self::ET_Dynamic|(it); -static inline-class-member method ET_Void|(dynamic it) → self::ET_Void { - lowered final self::ET_Void #this = it; +static inline-class-member method ET_Void|(dynamic it) → self::ET_Void /* = Never */ { + lowered final self::ET_Void /* = Never */ #this = it; return #this; } -static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void +static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void /* = Never */ return self::ET_Void|(it); -static inline-class-member method ET_Never|(dynamic it) → self::ET_Never { - lowered final self::ET_Never #this = it; +static inline-class-member method ET_Never|(dynamic it) → self::ET_Never /* = Never */ { + lowered final self::ET_Never /* = Never */ #this = it; return #this; } -static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never +static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never /* = Never */ return self::ET_Never|(it); -static inline-class-member method ET_Object|(dynamic it) → self::ET_Object { - lowered final self::ET_Object #this = it; +static inline-class-member method ET_Object|(dynamic it) → self::ET_Object /* = core::Object */ { + lowered final self::ET_Object /* = core::Object */ #this = it; return #this; } -static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object +static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object /* = core::Object */ return self::ET_Object|(it); -static inline-class-member method ET_Record|(dynamic it) → self::ET_Record { - lowered final self::ET_Record #this = it; +static inline-class-member method ET_Record|(dynamic it) → self::ET_Record /* = core::Record */ { + lowered final self::ET_Record /* = core::Record */ #this = it; return #this; } -static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record +static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record /* = core::Record */ return self::ET_Record|(it); -static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType { - lowered final self::ET_RecordType #this = it; +static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ { + lowered final self::ET_RecordType /* =(core::int, core::String) */ #this = it; return #this; } -static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType +static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ return self::ET_RecordType|(it); -static inline-class-member method ET_Function|(dynamic it) → self::ET_Function { - lowered final self::ET_Function #this = it; +static inline-class-member method ET_Function|(dynamic it) → self::ET_Function /* = core::Function */ { + lowered final self::ET_Function /* = core::Function */ #this = it; return #this; } -static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function +static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function /* = core::Function */ return self::ET_Function|(it); -static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType { - lowered final self::ET_FunctionType #this = it; +static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType /* = () → void */ { + lowered final self::ET_FunctionType /* = () → void */ #this = it; return #this; } -static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType +static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType /* = () → void */ return self::ET_FunctionType|(it); -static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType { - lowered final self::ET_NullableInterfaceType #this = it; +static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ { + lowered final self::ET_NullableInterfaceType /* = core::String? */ #this = it; return #this; } -static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType +static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ return self::ET_NullableInterfaceType|(it); -static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType { - lowered final self::ET_NullableExtensionType #this = it; +static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ { + lowered final self::ET_NullableExtensionType /* = core::int? */ #this = it; return #this; } -static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType +static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ return self::ET_NullableExtensionType|(it); -static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr { - lowered final self::ET_FutureOr #this = it; +static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr /* = FutureOr*/ { + lowered final self::ET_FutureOr /* = FutureOr*/ #this = it; return #this; } -static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr +static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr /* = FutureOr*/ return self::ET_FutureOr|(it); -static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension +static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension /* = Never */ return self::ET_Extension|(it); -static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension { - lowered final self::ET_Extension #this = it; +static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension /* = Never */ { + lowered final self::ET_Extension /* = Never */ #this = it; return #this; } -static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable { - lowered final self::ET_TypeVariable #this = it; +static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|::T% */ { + lowered final self::ET_TypeVariable /* = self::ET_TypeVariable|::T% */ #this = it; return #this; } -static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable +static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|_#new#tearOff::T% */ return self::ET_TypeVariable|(it); -static inline-class-member method ET_Class|(dynamic it) → self::ET_Class { - lowered final self::ET_Class #this = it; +static inline-class-member method ET_Class|(dynamic it) → self::ET_Class /* = self::Class */ { + lowered final self::ET_Class /* = self::Class */ #this = it; return #this; } -static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class +static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class /* = self::Class */ return self::ET_Class|(it); -static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass { - lowered final self::ET_GenericClass #this = it; +static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ { + lowered final self::ET_GenericClass /* = self::GenericClass */ #this = it; return #this; } -static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass +static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ return self::ET_GenericClass|(it); -static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias { - lowered final self::ET_Alias #this = it; +static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias /* = self::Class */ { + lowered final self::ET_Alias /* = self::Class */ #this = it; return #this; } -static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias +static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias /* = self::Class */ return self::ET_Alias|(it); -static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias { - lowered final self::ET_GenericAlias #this = it; +static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ { + lowered final self::ET_GenericAlias /* = self::GenericClass */ #this = it; return #this; } -static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias +static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ return self::ET_GenericAlias|(it); -static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType { - lowered final self::ET_ExtensionType #this = it; +static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType /* = core::int */ { + lowered final self::ET_ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType +static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType /* = core::int */ return self::ET_ExtensionType|(it); -static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType { - lowered final self::ET_GenericExtensionType #this = it; +static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|::T% */ { + lowered final self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|::T% */ #this = it; return #this; } -static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType +static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|_#new#tearOff::T% */ return self::ET_GenericExtensionType|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.strong.transformed.expect index 0f251c09c8f..2df0ca39fcd 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.strong.transformed.expect @@ -91,7 +91,7 @@ import "dart:async"; typedef RecordType = (core::int, core::String); typedef FunctionType = () → void; typedef NullableInterfaceType = core::String?; -typedef NullableExtensionType = self::ExtensionType?; +typedef NullableExtensionType = self::ExtensionType? /* = core::int? */; typedef Alias = self::Class; typedef GenericAlias = self::GenericClass; class Class extends core::Object { @@ -154,7 +154,7 @@ extension type ET_NullableInterfaceType(core::String? it) { constructor • = self::ET_NullableInterfaceType|; tearoff • = self::ET_NullableInterfaceType|_#new#tearOff; } -extension type ET_NullableExtensionType(self::ExtensionType? it) { +extension type ET_NullableExtensionType(self::ExtensionType? /* = core::int? */ it) { constructor • = self::ET_NullableExtensionType|; tearoff • = self::ET_NullableExtensionType|_#new#tearOff; } @@ -186,143 +186,143 @@ extension type ET_GenericAlias(self::GenericC constructor • = self::ET_GenericAlias|; tearoff • = self::ET_GenericAlias|_#new#tearOff; } -extension type ET_ExtensionType(self::ExtensionType it) implements self::ExtensionType { +extension type ET_ExtensionType(self::ExtensionType /* = core::int */ it) implements self::ExtensionType /* = core::int */ { constructor • = self::ET_ExtensionType|; tearoff • = self::ET_ExtensionType|_#new#tearOff; } -extension type ET_GenericExtensionType(self::GenericExtensionType it) implements self::GenericExtensionType { +extension type ET_GenericExtensionType(self::GenericExtensionType /* = T% */ it) implements self::GenericExtensionType /* = T% */ { constructor • = self::ET_GenericExtensionType|; tearoff • = self::ET_GenericExtensionType|_#new#tearOff; } -static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType { - lowered final self::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType /* = core::int */ { + lowered final self::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType /* = core::int */ return self::ExtensionType|(it); -static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType { - lowered final self::GenericExtensionType #this = it; +static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|::T% */ { + lowered final self::GenericExtensionType /* = self::GenericExtensionType|::T% */ #this = it; return #this; } -static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType +static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|_#new#tearOff::T% */ return self::GenericExtensionType|(it); -static inline-class-member method ET_Null|(dynamic it) → self::ET_Null { - lowered final self::ET_Null #this = it; +static inline-class-member method ET_Null|(dynamic it) → self::ET_Null /* = Null */ { + lowered final self::ET_Null /* = Null */ #this = it; return #this; } -static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null +static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null /* = Null */ return self::ET_Null|(it); -static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic { - lowered final self::ET_Dynamic #this = it; +static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic /* = dynamic */ { + lowered final self::ET_Dynamic /* = dynamic */ #this = it; return #this; } -static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic +static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic /* = dynamic */ return self::ET_Dynamic|(it); -static inline-class-member method ET_Void|(dynamic it) → self::ET_Void { - lowered final self::ET_Void #this = it; +static inline-class-member method ET_Void|(dynamic it) → self::ET_Void /* = Never */ { + lowered final self::ET_Void /* = Never */ #this = it; return #this; } -static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void +static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void /* = Never */ return self::ET_Void|(it); -static inline-class-member method ET_Never|(dynamic it) → self::ET_Never { - lowered final self::ET_Never #this = it; +static inline-class-member method ET_Never|(dynamic it) → self::ET_Never /* = Never */ { + lowered final self::ET_Never /* = Never */ #this = it; return #this; } -static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never +static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never /* = Never */ return self::ET_Never|(it); -static inline-class-member method ET_Object|(dynamic it) → self::ET_Object { - lowered final self::ET_Object #this = it; +static inline-class-member method ET_Object|(dynamic it) → self::ET_Object /* = core::Object */ { + lowered final self::ET_Object /* = core::Object */ #this = it; return #this; } -static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object +static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object /* = core::Object */ return self::ET_Object|(it); -static inline-class-member method ET_Record|(dynamic it) → self::ET_Record { - lowered final self::ET_Record #this = it; +static inline-class-member method ET_Record|(dynamic it) → self::ET_Record /* = core::Record */ { + lowered final self::ET_Record /* = core::Record */ #this = it; return #this; } -static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record +static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record /* = core::Record */ return self::ET_Record|(it); -static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType { - lowered final self::ET_RecordType #this = it; +static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ { + lowered final self::ET_RecordType /* =(core::int, core::String) */ #this = it; return #this; } -static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType +static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ return self::ET_RecordType|(it); -static inline-class-member method ET_Function|(dynamic it) → self::ET_Function { - lowered final self::ET_Function #this = it; +static inline-class-member method ET_Function|(dynamic it) → self::ET_Function /* = core::Function */ { + lowered final self::ET_Function /* = core::Function */ #this = it; return #this; } -static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function +static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function /* = core::Function */ return self::ET_Function|(it); -static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType { - lowered final self::ET_FunctionType #this = it; +static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType /* = () → void */ { + lowered final self::ET_FunctionType /* = () → void */ #this = it; return #this; } -static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType +static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType /* = () → void */ return self::ET_FunctionType|(it); -static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType { - lowered final self::ET_NullableInterfaceType #this = it; +static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ { + lowered final self::ET_NullableInterfaceType /* = core::String? */ #this = it; return #this; } -static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType +static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ return self::ET_NullableInterfaceType|(it); -static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType { - lowered final self::ET_NullableExtensionType #this = it; +static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ { + lowered final self::ET_NullableExtensionType /* = core::int? */ #this = it; return #this; } -static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType +static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ return self::ET_NullableExtensionType|(it); -static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr { - lowered final self::ET_FutureOr #this = it; +static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr /* = FutureOr*/ { + lowered final self::ET_FutureOr /* = FutureOr*/ #this = it; return #this; } -static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr +static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr /* = FutureOr*/ return self::ET_FutureOr|(it); -static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension +static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension /* = Never */ return self::ET_Extension|(it); -static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension { - lowered final self::ET_Extension #this = it; +static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension /* = Never */ { + lowered final self::ET_Extension /* = Never */ #this = it; return #this; } -static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable { - lowered final self::ET_TypeVariable #this = it; +static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|::T% */ { + lowered final self::ET_TypeVariable /* = self::ET_TypeVariable|::T% */ #this = it; return #this; } -static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable +static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|_#new#tearOff::T% */ return self::ET_TypeVariable|(it); -static inline-class-member method ET_Class|(dynamic it) → self::ET_Class { - lowered final self::ET_Class #this = it; +static inline-class-member method ET_Class|(dynamic it) → self::ET_Class /* = self::Class */ { + lowered final self::ET_Class /* = self::Class */ #this = it; return #this; } -static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class +static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class /* = self::Class */ return self::ET_Class|(it); -static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass { - lowered final self::ET_GenericClass #this = it; +static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ { + lowered final self::ET_GenericClass /* = self::GenericClass */ #this = it; return #this; } -static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass +static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ return self::ET_GenericClass|(it); -static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias { - lowered final self::ET_Alias #this = it; +static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias /* = self::Class */ { + lowered final self::ET_Alias /* = self::Class */ #this = it; return #this; } -static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias +static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias /* = self::Class */ return self::ET_Alias|(it); -static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias { - lowered final self::ET_GenericAlias #this = it; +static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ { + lowered final self::ET_GenericAlias /* = self::GenericClass */ #this = it; return #this; } -static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias +static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ return self::ET_GenericAlias|(it); -static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType { - lowered final self::ET_ExtensionType #this = it; +static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType /* = core::int */ { + lowered final self::ET_ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType +static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType /* = core::int */ return self::ET_ExtensionType|(it); -static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType { - lowered final self::ET_GenericExtensionType #this = it; +static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|::T% */ { + lowered final self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|::T% */ #this = it; return #this; } -static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType +static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|_#new#tearOff::T% */ return self::ET_GenericExtensionType|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.expect index 0f251c09c8f..2df0ca39fcd 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.expect @@ -91,7 +91,7 @@ import "dart:async"; typedef RecordType = (core::int, core::String); typedef FunctionType = () → void; typedef NullableInterfaceType = core::String?; -typedef NullableExtensionType = self::ExtensionType?; +typedef NullableExtensionType = self::ExtensionType? /* = core::int? */; typedef Alias = self::Class; typedef GenericAlias = self::GenericClass; class Class extends core::Object { @@ -154,7 +154,7 @@ extension type ET_NullableInterfaceType(core::String? it) { constructor • = self::ET_NullableInterfaceType|; tearoff • = self::ET_NullableInterfaceType|_#new#tearOff; } -extension type ET_NullableExtensionType(self::ExtensionType? it) { +extension type ET_NullableExtensionType(self::ExtensionType? /* = core::int? */ it) { constructor • = self::ET_NullableExtensionType|; tearoff • = self::ET_NullableExtensionType|_#new#tearOff; } @@ -186,143 +186,143 @@ extension type ET_GenericAlias(self::GenericC constructor • = self::ET_GenericAlias|; tearoff • = self::ET_GenericAlias|_#new#tearOff; } -extension type ET_ExtensionType(self::ExtensionType it) implements self::ExtensionType { +extension type ET_ExtensionType(self::ExtensionType /* = core::int */ it) implements self::ExtensionType /* = core::int */ { constructor • = self::ET_ExtensionType|; tearoff • = self::ET_ExtensionType|_#new#tearOff; } -extension type ET_GenericExtensionType(self::GenericExtensionType it) implements self::GenericExtensionType { +extension type ET_GenericExtensionType(self::GenericExtensionType /* = T% */ it) implements self::GenericExtensionType /* = T% */ { constructor • = self::ET_GenericExtensionType|; tearoff • = self::ET_GenericExtensionType|_#new#tearOff; } -static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType { - lowered final self::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType /* = core::int */ { + lowered final self::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType /* = core::int */ return self::ExtensionType|(it); -static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType { - lowered final self::GenericExtensionType #this = it; +static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|::T% */ { + lowered final self::GenericExtensionType /* = self::GenericExtensionType|::T% */ #this = it; return #this; } -static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType +static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|_#new#tearOff::T% */ return self::GenericExtensionType|(it); -static inline-class-member method ET_Null|(dynamic it) → self::ET_Null { - lowered final self::ET_Null #this = it; +static inline-class-member method ET_Null|(dynamic it) → self::ET_Null /* = Null */ { + lowered final self::ET_Null /* = Null */ #this = it; return #this; } -static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null +static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null /* = Null */ return self::ET_Null|(it); -static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic { - lowered final self::ET_Dynamic #this = it; +static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic /* = dynamic */ { + lowered final self::ET_Dynamic /* = dynamic */ #this = it; return #this; } -static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic +static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic /* = dynamic */ return self::ET_Dynamic|(it); -static inline-class-member method ET_Void|(dynamic it) → self::ET_Void { - lowered final self::ET_Void #this = it; +static inline-class-member method ET_Void|(dynamic it) → self::ET_Void /* = Never */ { + lowered final self::ET_Void /* = Never */ #this = it; return #this; } -static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void +static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void /* = Never */ return self::ET_Void|(it); -static inline-class-member method ET_Never|(dynamic it) → self::ET_Never { - lowered final self::ET_Never #this = it; +static inline-class-member method ET_Never|(dynamic it) → self::ET_Never /* = Never */ { + lowered final self::ET_Never /* = Never */ #this = it; return #this; } -static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never +static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never /* = Never */ return self::ET_Never|(it); -static inline-class-member method ET_Object|(dynamic it) → self::ET_Object { - lowered final self::ET_Object #this = it; +static inline-class-member method ET_Object|(dynamic it) → self::ET_Object /* = core::Object */ { + lowered final self::ET_Object /* = core::Object */ #this = it; return #this; } -static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object +static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object /* = core::Object */ return self::ET_Object|(it); -static inline-class-member method ET_Record|(dynamic it) → self::ET_Record { - lowered final self::ET_Record #this = it; +static inline-class-member method ET_Record|(dynamic it) → self::ET_Record /* = core::Record */ { + lowered final self::ET_Record /* = core::Record */ #this = it; return #this; } -static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record +static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record /* = core::Record */ return self::ET_Record|(it); -static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType { - lowered final self::ET_RecordType #this = it; +static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ { + lowered final self::ET_RecordType /* =(core::int, core::String) */ #this = it; return #this; } -static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType +static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ return self::ET_RecordType|(it); -static inline-class-member method ET_Function|(dynamic it) → self::ET_Function { - lowered final self::ET_Function #this = it; +static inline-class-member method ET_Function|(dynamic it) → self::ET_Function /* = core::Function */ { + lowered final self::ET_Function /* = core::Function */ #this = it; return #this; } -static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function +static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function /* = core::Function */ return self::ET_Function|(it); -static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType { - lowered final self::ET_FunctionType #this = it; +static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType /* = () → void */ { + lowered final self::ET_FunctionType /* = () → void */ #this = it; return #this; } -static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType +static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType /* = () → void */ return self::ET_FunctionType|(it); -static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType { - lowered final self::ET_NullableInterfaceType #this = it; +static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ { + lowered final self::ET_NullableInterfaceType /* = core::String? */ #this = it; return #this; } -static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType +static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ return self::ET_NullableInterfaceType|(it); -static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType { - lowered final self::ET_NullableExtensionType #this = it; +static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ { + lowered final self::ET_NullableExtensionType /* = core::int? */ #this = it; return #this; } -static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType +static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ return self::ET_NullableExtensionType|(it); -static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr { - lowered final self::ET_FutureOr #this = it; +static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr /* = FutureOr*/ { + lowered final self::ET_FutureOr /* = FutureOr*/ #this = it; return #this; } -static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr +static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr /* = FutureOr*/ return self::ET_FutureOr|(it); -static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension +static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension /* = Never */ return self::ET_Extension|(it); -static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension { - lowered final self::ET_Extension #this = it; +static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension /* = Never */ { + lowered final self::ET_Extension /* = Never */ #this = it; return #this; } -static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable { - lowered final self::ET_TypeVariable #this = it; +static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|::T% */ { + lowered final self::ET_TypeVariable /* = self::ET_TypeVariable|::T% */ #this = it; return #this; } -static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable +static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|_#new#tearOff::T% */ return self::ET_TypeVariable|(it); -static inline-class-member method ET_Class|(dynamic it) → self::ET_Class { - lowered final self::ET_Class #this = it; +static inline-class-member method ET_Class|(dynamic it) → self::ET_Class /* = self::Class */ { + lowered final self::ET_Class /* = self::Class */ #this = it; return #this; } -static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class +static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class /* = self::Class */ return self::ET_Class|(it); -static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass { - lowered final self::ET_GenericClass #this = it; +static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ { + lowered final self::ET_GenericClass /* = self::GenericClass */ #this = it; return #this; } -static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass +static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ return self::ET_GenericClass|(it); -static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias { - lowered final self::ET_Alias #this = it; +static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias /* = self::Class */ { + lowered final self::ET_Alias /* = self::Class */ #this = it; return #this; } -static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias +static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias /* = self::Class */ return self::ET_Alias|(it); -static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias { - lowered final self::ET_GenericAlias #this = it; +static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ { + lowered final self::ET_GenericAlias /* = self::GenericClass */ #this = it; return #this; } -static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias +static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ return self::ET_GenericAlias|(it); -static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType { - lowered final self::ET_ExtensionType #this = it; +static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType /* = core::int */ { + lowered final self::ET_ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType +static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType /* = core::int */ return self::ET_ExtensionType|(it); -static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType { - lowered final self::ET_GenericExtensionType #this = it; +static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|::T% */ { + lowered final self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|::T% */ #this = it; return #this; } -static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType +static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|_#new#tearOff::T% */ return self::ET_GenericExtensionType|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.modular.expect index 0f251c09c8f..2df0ca39fcd 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.modular.expect @@ -91,7 +91,7 @@ import "dart:async"; typedef RecordType = (core::int, core::String); typedef FunctionType = () → void; typedef NullableInterfaceType = core::String?; -typedef NullableExtensionType = self::ExtensionType?; +typedef NullableExtensionType = self::ExtensionType? /* = core::int? */; typedef Alias = self::Class; typedef GenericAlias = self::GenericClass; class Class extends core::Object { @@ -154,7 +154,7 @@ extension type ET_NullableInterfaceType(core::String? it) { constructor • = self::ET_NullableInterfaceType|; tearoff • = self::ET_NullableInterfaceType|_#new#tearOff; } -extension type ET_NullableExtensionType(self::ExtensionType? it) { +extension type ET_NullableExtensionType(self::ExtensionType? /* = core::int? */ it) { constructor • = self::ET_NullableExtensionType|; tearoff • = self::ET_NullableExtensionType|_#new#tearOff; } @@ -186,143 +186,143 @@ extension type ET_GenericAlias(self::GenericC constructor • = self::ET_GenericAlias|; tearoff • = self::ET_GenericAlias|_#new#tearOff; } -extension type ET_ExtensionType(self::ExtensionType it) implements self::ExtensionType { +extension type ET_ExtensionType(self::ExtensionType /* = core::int */ it) implements self::ExtensionType /* = core::int */ { constructor • = self::ET_ExtensionType|; tearoff • = self::ET_ExtensionType|_#new#tearOff; } -extension type ET_GenericExtensionType(self::GenericExtensionType it) implements self::GenericExtensionType { +extension type ET_GenericExtensionType(self::GenericExtensionType /* = T% */ it) implements self::GenericExtensionType /* = T% */ { constructor • = self::ET_GenericExtensionType|; tearoff • = self::ET_GenericExtensionType|_#new#tearOff; } -static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType { - lowered final self::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType /* = core::int */ { + lowered final self::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType /* = core::int */ return self::ExtensionType|(it); -static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType { - lowered final self::GenericExtensionType #this = it; +static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|::T% */ { + lowered final self::GenericExtensionType /* = self::GenericExtensionType|::T% */ #this = it; return #this; } -static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType +static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|_#new#tearOff::T% */ return self::GenericExtensionType|(it); -static inline-class-member method ET_Null|(dynamic it) → self::ET_Null { - lowered final self::ET_Null #this = it; +static inline-class-member method ET_Null|(dynamic it) → self::ET_Null /* = Null */ { + lowered final self::ET_Null /* = Null */ #this = it; return #this; } -static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null +static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null /* = Null */ return self::ET_Null|(it); -static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic { - lowered final self::ET_Dynamic #this = it; +static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic /* = dynamic */ { + lowered final self::ET_Dynamic /* = dynamic */ #this = it; return #this; } -static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic +static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic /* = dynamic */ return self::ET_Dynamic|(it); -static inline-class-member method ET_Void|(dynamic it) → self::ET_Void { - lowered final self::ET_Void #this = it; +static inline-class-member method ET_Void|(dynamic it) → self::ET_Void /* = Never */ { + lowered final self::ET_Void /* = Never */ #this = it; return #this; } -static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void +static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void /* = Never */ return self::ET_Void|(it); -static inline-class-member method ET_Never|(dynamic it) → self::ET_Never { - lowered final self::ET_Never #this = it; +static inline-class-member method ET_Never|(dynamic it) → self::ET_Never /* = Never */ { + lowered final self::ET_Never /* = Never */ #this = it; return #this; } -static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never +static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never /* = Never */ return self::ET_Never|(it); -static inline-class-member method ET_Object|(dynamic it) → self::ET_Object { - lowered final self::ET_Object #this = it; +static inline-class-member method ET_Object|(dynamic it) → self::ET_Object /* = core::Object */ { + lowered final self::ET_Object /* = core::Object */ #this = it; return #this; } -static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object +static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object /* = core::Object */ return self::ET_Object|(it); -static inline-class-member method ET_Record|(dynamic it) → self::ET_Record { - lowered final self::ET_Record #this = it; +static inline-class-member method ET_Record|(dynamic it) → self::ET_Record /* = core::Record */ { + lowered final self::ET_Record /* = core::Record */ #this = it; return #this; } -static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record +static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record /* = core::Record */ return self::ET_Record|(it); -static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType { - lowered final self::ET_RecordType #this = it; +static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ { + lowered final self::ET_RecordType /* =(core::int, core::String) */ #this = it; return #this; } -static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType +static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ return self::ET_RecordType|(it); -static inline-class-member method ET_Function|(dynamic it) → self::ET_Function { - lowered final self::ET_Function #this = it; +static inline-class-member method ET_Function|(dynamic it) → self::ET_Function /* = core::Function */ { + lowered final self::ET_Function /* = core::Function */ #this = it; return #this; } -static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function +static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function /* = core::Function */ return self::ET_Function|(it); -static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType { - lowered final self::ET_FunctionType #this = it; +static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType /* = () → void */ { + lowered final self::ET_FunctionType /* = () → void */ #this = it; return #this; } -static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType +static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType /* = () → void */ return self::ET_FunctionType|(it); -static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType { - lowered final self::ET_NullableInterfaceType #this = it; +static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ { + lowered final self::ET_NullableInterfaceType /* = core::String? */ #this = it; return #this; } -static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType +static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ return self::ET_NullableInterfaceType|(it); -static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType { - lowered final self::ET_NullableExtensionType #this = it; +static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ { + lowered final self::ET_NullableExtensionType /* = core::int? */ #this = it; return #this; } -static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType +static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ return self::ET_NullableExtensionType|(it); -static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr { - lowered final self::ET_FutureOr #this = it; +static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr /* = FutureOr*/ { + lowered final self::ET_FutureOr /* = FutureOr*/ #this = it; return #this; } -static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr +static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr /* = FutureOr*/ return self::ET_FutureOr|(it); -static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension +static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension /* = Never */ return self::ET_Extension|(it); -static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension { - lowered final self::ET_Extension #this = it; +static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension /* = Never */ { + lowered final self::ET_Extension /* = Never */ #this = it; return #this; } -static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable { - lowered final self::ET_TypeVariable #this = it; +static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|::T% */ { + lowered final self::ET_TypeVariable /* = self::ET_TypeVariable|::T% */ #this = it; return #this; } -static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable +static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|_#new#tearOff::T% */ return self::ET_TypeVariable|(it); -static inline-class-member method ET_Class|(dynamic it) → self::ET_Class { - lowered final self::ET_Class #this = it; +static inline-class-member method ET_Class|(dynamic it) → self::ET_Class /* = self::Class */ { + lowered final self::ET_Class /* = self::Class */ #this = it; return #this; } -static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class +static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class /* = self::Class */ return self::ET_Class|(it); -static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass { - lowered final self::ET_GenericClass #this = it; +static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ { + lowered final self::ET_GenericClass /* = self::GenericClass */ #this = it; return #this; } -static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass +static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ return self::ET_GenericClass|(it); -static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias { - lowered final self::ET_Alias #this = it; +static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias /* = self::Class */ { + lowered final self::ET_Alias /* = self::Class */ #this = it; return #this; } -static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias +static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias /* = self::Class */ return self::ET_Alias|(it); -static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias { - lowered final self::ET_GenericAlias #this = it; +static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ { + lowered final self::ET_GenericAlias /* = self::GenericClass */ #this = it; return #this; } -static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias +static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ return self::ET_GenericAlias|(it); -static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType { - lowered final self::ET_ExtensionType #this = it; +static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType /* = core::int */ { + lowered final self::ET_ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType +static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType /* = core::int */ return self::ET_ExtensionType|(it); -static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType { - lowered final self::ET_GenericExtensionType #this = it; +static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|::T% */ { + lowered final self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|::T% */ #this = it; return #this; } -static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType +static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|_#new#tearOff::T% */ return self::ET_GenericExtensionType|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.outline.expect index 8720578f618..6a2903a17d1 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.outline.expect @@ -91,7 +91,7 @@ import "dart:async"; typedef RecordType = (core::int, core::String); typedef FunctionType = () → void; typedef NullableInterfaceType = core::String?; -typedef NullableExtensionType = self::ExtensionType?; +typedef NullableExtensionType = self::ExtensionType? /* = core::int? */; typedef Alias = self::Class; typedef GenericAlias = self::GenericClass; class Class extends core::Object { @@ -152,7 +152,7 @@ extension type ET_NullableInterfaceType(core::String? it) { constructor • = self::ET_NullableInterfaceType|; tearoff • = self::ET_NullableInterfaceType|_#new#tearOff; } -extension type ET_NullableExtensionType(self::ExtensionType? it) { +extension type ET_NullableExtensionType(self::ExtensionType? /* = core::int? */ it) { constructor • = self::ET_NullableExtensionType|; tearoff • = self::ET_NullableExtensionType|_#new#tearOff; } @@ -184,99 +184,99 @@ extension type ET_GenericAlias(self::GenericC constructor • = self::ET_GenericAlias|; tearoff • = self::ET_GenericAlias|_#new#tearOff; } -extension type ET_ExtensionType(self::ExtensionType it) implements self::ExtensionType { +extension type ET_ExtensionType(self::ExtensionType /* = core::int */ it) implements self::ExtensionType /* = core::int */ { constructor • = self::ET_ExtensionType|; tearoff • = self::ET_ExtensionType|_#new#tearOff; } -extension type ET_GenericExtensionType(self::GenericExtensionType it) implements self::GenericExtensionType { +extension type ET_GenericExtensionType(self::GenericExtensionType /* = T% */ it) implements self::GenericExtensionType /* = T% */ { constructor • = self::ET_GenericExtensionType|; tearoff • = self::ET_GenericExtensionType|_#new#tearOff; } -static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType +static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType /* = core::int */ ; -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType /* = core::int */ return self::ExtensionType|(it); -static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType +static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|::T% */ ; -static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType +static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|_#new#tearOff::T% */ return self::GenericExtensionType|(it); -static inline-class-member method ET_Null|(dynamic it) → self::ET_Null +static inline-class-member method ET_Null|(dynamic it) → self::ET_Null /* = Null */ ; -static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null +static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null /* = Null */ return self::ET_Null|(it); -static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic +static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic /* = dynamic */ ; -static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic +static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic /* = dynamic */ return self::ET_Dynamic|(it); -static inline-class-member method ET_Void|(dynamic it) → self::ET_Void +static inline-class-member method ET_Void|(dynamic it) → self::ET_Void /* = Never */ ; -static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void +static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void /* = Never */ return self::ET_Void|(it); -static inline-class-member method ET_Never|(dynamic it) → self::ET_Never +static inline-class-member method ET_Never|(dynamic it) → self::ET_Never /* = Never */ ; -static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never +static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never /* = Never */ return self::ET_Never|(it); -static inline-class-member method ET_Object|(dynamic it) → self::ET_Object +static inline-class-member method ET_Object|(dynamic it) → self::ET_Object /* = core::Object */ ; -static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object +static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object /* = core::Object */ return self::ET_Object|(it); -static inline-class-member method ET_Record|(dynamic it) → self::ET_Record +static inline-class-member method ET_Record|(dynamic it) → self::ET_Record /* = core::Record */ ; -static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record +static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record /* = core::Record */ return self::ET_Record|(it); -static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType +static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ ; -static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType +static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ return self::ET_RecordType|(it); -static inline-class-member method ET_Function|(dynamic it) → self::ET_Function +static inline-class-member method ET_Function|(dynamic it) → self::ET_Function /* = core::Function */ ; -static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function +static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function /* = core::Function */ return self::ET_Function|(it); -static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType +static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType /* = () → void */ ; -static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType +static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType /* = () → void */ return self::ET_FunctionType|(it); -static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType +static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ ; -static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType +static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ return self::ET_NullableInterfaceType|(it); -static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType +static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ ; -static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType +static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ return self::ET_NullableExtensionType|(it); -static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr +static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr /* = FutureOr*/ ; -static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr +static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr /* = FutureOr*/ return self::ET_FutureOr|(it); -static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension +static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension /* = Never */ return self::ET_Extension|(it); -static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension +static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension /* = Never */ ; -static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable +static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|::T% */ ; -static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable +static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|_#new#tearOff::T% */ return self::ET_TypeVariable|(it); -static inline-class-member method ET_Class|(dynamic it) → self::ET_Class +static inline-class-member method ET_Class|(dynamic it) → self::ET_Class /* = self::Class */ ; -static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class +static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class /* = self::Class */ return self::ET_Class|(it); -static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass +static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ ; -static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass +static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ return self::ET_GenericClass|(it); -static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias +static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias /* = self::Class */ ; -static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias +static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias /* = self::Class */ return self::ET_Alias|(it); -static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias +static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ ; -static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias +static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ return self::ET_GenericAlias|(it); -static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType +static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType /* = core::int */ ; -static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType +static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType /* = core::int */ return self::ET_ExtensionType|(it); -static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType +static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|::T% */ ; -static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType +static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|_#new#tearOff::T% */ return self::ET_GenericExtensionType|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.transformed.expect index 0f251c09c8f..2df0ca39fcd 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implement_all.dart.weak.transformed.expect @@ -91,7 +91,7 @@ import "dart:async"; typedef RecordType = (core::int, core::String); typedef FunctionType = () → void; typedef NullableInterfaceType = core::String?; -typedef NullableExtensionType = self::ExtensionType?; +typedef NullableExtensionType = self::ExtensionType? /* = core::int? */; typedef Alias = self::Class; typedef GenericAlias = self::GenericClass; class Class extends core::Object { @@ -154,7 +154,7 @@ extension type ET_NullableInterfaceType(core::String? it) { constructor • = self::ET_NullableInterfaceType|; tearoff • = self::ET_NullableInterfaceType|_#new#tearOff; } -extension type ET_NullableExtensionType(self::ExtensionType? it) { +extension type ET_NullableExtensionType(self::ExtensionType? /* = core::int? */ it) { constructor • = self::ET_NullableExtensionType|; tearoff • = self::ET_NullableExtensionType|_#new#tearOff; } @@ -186,143 +186,143 @@ extension type ET_GenericAlias(self::GenericC constructor • = self::ET_GenericAlias|; tearoff • = self::ET_GenericAlias|_#new#tearOff; } -extension type ET_ExtensionType(self::ExtensionType it) implements self::ExtensionType { +extension type ET_ExtensionType(self::ExtensionType /* = core::int */ it) implements self::ExtensionType /* = core::int */ { constructor • = self::ET_ExtensionType|; tearoff • = self::ET_ExtensionType|_#new#tearOff; } -extension type ET_GenericExtensionType(self::GenericExtensionType it) implements self::GenericExtensionType { +extension type ET_GenericExtensionType(self::GenericExtensionType /* = T% */ it) implements self::GenericExtensionType /* = T% */ { constructor • = self::ET_GenericExtensionType|; tearoff • = self::ET_GenericExtensionType|_#new#tearOff; } -static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType { - lowered final self::ExtensionType #this = it; +static inline-class-member method ExtensionType|(dynamic it) → self::ExtensionType /* = core::int */ { + lowered final self::ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType +static inline-class-member method ExtensionType|_#new#tearOff(dynamic it) → self::ExtensionType /* = core::int */ return self::ExtensionType|(it); -static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType { - lowered final self::GenericExtensionType #this = it; +static inline-class-member method GenericExtensionType|(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|::T% */ { + lowered final self::GenericExtensionType /* = self::GenericExtensionType|::T% */ #this = it; return #this; } -static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType +static inline-class-member method GenericExtensionType|_#new#tearOff(dynamic it) → self::GenericExtensionType /* = self::GenericExtensionType|_#new#tearOff::T% */ return self::GenericExtensionType|(it); -static inline-class-member method ET_Null|(dynamic it) → self::ET_Null { - lowered final self::ET_Null #this = it; +static inline-class-member method ET_Null|(dynamic it) → self::ET_Null /* = Null */ { + lowered final self::ET_Null /* = Null */ #this = it; return #this; } -static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null +static inline-class-member method ET_Null|_#new#tearOff(dynamic it) → self::ET_Null /* = Null */ return self::ET_Null|(it); -static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic { - lowered final self::ET_Dynamic #this = it; +static inline-class-member method ET_Dynamic|(dynamic it) → self::ET_Dynamic /* = dynamic */ { + lowered final self::ET_Dynamic /* = dynamic */ #this = it; return #this; } -static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic +static inline-class-member method ET_Dynamic|_#new#tearOff(dynamic it) → self::ET_Dynamic /* = dynamic */ return self::ET_Dynamic|(it); -static inline-class-member method ET_Void|(dynamic it) → self::ET_Void { - lowered final self::ET_Void #this = it; +static inline-class-member method ET_Void|(dynamic it) → self::ET_Void /* = Never */ { + lowered final self::ET_Void /* = Never */ #this = it; return #this; } -static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void +static inline-class-member method ET_Void|_#new#tearOff(dynamic it) → self::ET_Void /* = Never */ return self::ET_Void|(it); -static inline-class-member method ET_Never|(dynamic it) → self::ET_Never { - lowered final self::ET_Never #this = it; +static inline-class-member method ET_Never|(dynamic it) → self::ET_Never /* = Never */ { + lowered final self::ET_Never /* = Never */ #this = it; return #this; } -static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never +static inline-class-member method ET_Never|_#new#tearOff(dynamic it) → self::ET_Never /* = Never */ return self::ET_Never|(it); -static inline-class-member method ET_Object|(dynamic it) → self::ET_Object { - lowered final self::ET_Object #this = it; +static inline-class-member method ET_Object|(dynamic it) → self::ET_Object /* = core::Object */ { + lowered final self::ET_Object /* = core::Object */ #this = it; return #this; } -static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object +static inline-class-member method ET_Object|_#new#tearOff(dynamic it) → self::ET_Object /* = core::Object */ return self::ET_Object|(it); -static inline-class-member method ET_Record|(dynamic it) → self::ET_Record { - lowered final self::ET_Record #this = it; +static inline-class-member method ET_Record|(dynamic it) → self::ET_Record /* = core::Record */ { + lowered final self::ET_Record /* = core::Record */ #this = it; return #this; } -static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record +static inline-class-member method ET_Record|_#new#tearOff(dynamic it) → self::ET_Record /* = core::Record */ return self::ET_Record|(it); -static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType { - lowered final self::ET_RecordType #this = it; +static inline-class-member method ET_RecordType|(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ { + lowered final self::ET_RecordType /* =(core::int, core::String) */ #this = it; return #this; } -static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType +static inline-class-member method ET_RecordType|_#new#tearOff(dynamic it) → self::ET_RecordType /* =(core::int, core::String) */ return self::ET_RecordType|(it); -static inline-class-member method ET_Function|(dynamic it) → self::ET_Function { - lowered final self::ET_Function #this = it; +static inline-class-member method ET_Function|(dynamic it) → self::ET_Function /* = core::Function */ { + lowered final self::ET_Function /* = core::Function */ #this = it; return #this; } -static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function +static inline-class-member method ET_Function|_#new#tearOff(dynamic it) → self::ET_Function /* = core::Function */ return self::ET_Function|(it); -static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType { - lowered final self::ET_FunctionType #this = it; +static inline-class-member method ET_FunctionType|(dynamic it) → self::ET_FunctionType /* = () → void */ { + lowered final self::ET_FunctionType /* = () → void */ #this = it; return #this; } -static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType +static inline-class-member method ET_FunctionType|_#new#tearOff(dynamic it) → self::ET_FunctionType /* = () → void */ return self::ET_FunctionType|(it); -static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType { - lowered final self::ET_NullableInterfaceType #this = it; +static inline-class-member method ET_NullableInterfaceType|(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ { + lowered final self::ET_NullableInterfaceType /* = core::String? */ #this = it; return #this; } -static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType +static inline-class-member method ET_NullableInterfaceType|_#new#tearOff(dynamic it) → self::ET_NullableInterfaceType /* = core::String? */ return self::ET_NullableInterfaceType|(it); -static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType { - lowered final self::ET_NullableExtensionType #this = it; +static inline-class-member method ET_NullableExtensionType|(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ { + lowered final self::ET_NullableExtensionType /* = core::int? */ #this = it; return #this; } -static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType +static inline-class-member method ET_NullableExtensionType|_#new#tearOff(dynamic it) → self::ET_NullableExtensionType /* = core::int? */ return self::ET_NullableExtensionType|(it); -static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr { - lowered final self::ET_FutureOr #this = it; +static inline-class-member method ET_FutureOr|(dynamic it) → self::ET_FutureOr /* = FutureOr*/ { + lowered final self::ET_FutureOr /* = FutureOr*/ #this = it; return #this; } -static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr +static inline-class-member method ET_FutureOr|_#new#tearOff(dynamic it) → self::ET_FutureOr /* = FutureOr*/ return self::ET_FutureOr|(it); -static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension +static inline-class-member method ET_Extension|_#new#tearOff(dynamic it) → self::ET_Extension /* = Never */ return self::ET_Extension|(it); -static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension { - lowered final self::ET_Extension #this = it; +static inline-class-member method ET_Extension|(dynamic it) → self::ET_Extension /* = Never */ { + lowered final self::ET_Extension /* = Never */ #this = it; return #this; } -static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable { - lowered final self::ET_TypeVariable #this = it; +static inline-class-member method ET_TypeVariable|(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|::T% */ { + lowered final self::ET_TypeVariable /* = self::ET_TypeVariable|::T% */ #this = it; return #this; } -static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable +static inline-class-member method ET_TypeVariable|_#new#tearOff(dynamic it) → self::ET_TypeVariable /* = self::ET_TypeVariable|_#new#tearOff::T% */ return self::ET_TypeVariable|(it); -static inline-class-member method ET_Class|(dynamic it) → self::ET_Class { - lowered final self::ET_Class #this = it; +static inline-class-member method ET_Class|(dynamic it) → self::ET_Class /* = self::Class */ { + lowered final self::ET_Class /* = self::Class */ #this = it; return #this; } -static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class +static inline-class-member method ET_Class|_#new#tearOff(dynamic it) → self::ET_Class /* = self::Class */ return self::ET_Class|(it); -static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass { - lowered final self::ET_GenericClass #this = it; +static inline-class-member method ET_GenericClass|(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ { + lowered final self::ET_GenericClass /* = self::GenericClass */ #this = it; return #this; } -static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass +static inline-class-member method ET_GenericClass|_#new#tearOff(dynamic it) → self::ET_GenericClass /* = self::GenericClass */ return self::ET_GenericClass|(it); -static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias { - lowered final self::ET_Alias #this = it; +static inline-class-member method ET_Alias|(dynamic it) → self::ET_Alias /* = self::Class */ { + lowered final self::ET_Alias /* = self::Class */ #this = it; return #this; } -static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias +static inline-class-member method ET_Alias|_#new#tearOff(dynamic it) → self::ET_Alias /* = self::Class */ return self::ET_Alias|(it); -static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias { - lowered final self::ET_GenericAlias #this = it; +static inline-class-member method ET_GenericAlias|(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ { + lowered final self::ET_GenericAlias /* = self::GenericClass */ #this = it; return #this; } -static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias +static inline-class-member method ET_GenericAlias|_#new#tearOff(dynamic it) → self::ET_GenericAlias /* = self::GenericClass */ return self::ET_GenericAlias|(it); -static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType { - lowered final self::ET_ExtensionType #this = it; +static inline-class-member method ET_ExtensionType|(dynamic it) → self::ET_ExtensionType /* = core::int */ { + lowered final self::ET_ExtensionType /* = core::int */ #this = it; return #this; } -static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType +static inline-class-member method ET_ExtensionType|_#new#tearOff(dynamic it) → self::ET_ExtensionType /* = core::int */ return self::ET_ExtensionType|(it); -static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType { - lowered final self::ET_GenericExtensionType #this = it; +static inline-class-member method ET_GenericExtensionType|(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|::T% */ { + lowered final self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|::T% */ #this = it; return #this; } -static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType +static inline-class-member method ET_GenericExtensionType|_#new#tearOff(dynamic it) → self::ET_GenericExtensionType /* = self::ET_GenericExtensionType|_#new#tearOff::T% */ return self::ET_GenericExtensionType|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.strong.expect index 6aab37ca262..2174dfe034d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.strong.expect @@ -212,75 +212,75 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(5){(core::num) → core::int}; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = self::B|::T% */ { + lowered final self::B /* = self::B|::T% */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% return #this as{Unchecked} self::B|methodB::T%; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(dynamic it) → self::C1 { - lowered final self::C1 #this = it; +static inline-class-member method C1|(dynamic it) → self::C1 /* = core::int */ { + lowered final self::C1 /* = core::int */ #this = it; return #this; } -static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 +static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(42){(core::num) → core::int}; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(dynamic it) → self::C2 { - lowered final self::C2 #this = it; +static inline-class-member method C2|(dynamic it) → self::C2 /* = core::int */ { + lowered final self::C2 /* = core::int */ #this = it; return #this; } -static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 +static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(87){(core::num) → core::int}; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(dynamic it) → self::D1 { - lowered final self::D1 #this = it; +static inline-class-member method D1|(dynamic it) → self::D1 /* = core::int */ { + lowered final self::D1 /* = core::int */ #this = it; return #this; } -static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 +static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(123){(core::num) → core::int}; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:26:5: Error: The method 'methodB' isn't defined for the class 'A'. Try correcting the name to the name of an existing method, or defining a method named 'methodB'. a.methodB(); // Error @@ -359,81 +359,81 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^" in d1{}.methodC2(); a = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:51:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b1; // Error - ^" in b1 as{TypeError} self::A; + ^" in b1 as{TypeError} self::A /* = core::int */; a = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:52:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b2; // Error - ^" in b2 as{TypeError} self::A; + ^" in b2 as{TypeError} self::A /* = core::int */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:54:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b1 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:55:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b1 = b2; // Error - ^" in b2 as{TypeError} self::B; + ^" in b2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:56:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b1 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:57:8: Error: A value of type 'C2' can't be assigned to a variable of type 'B'. b1 = c2; // Error - ^" in c2 as{TypeError} self::B; + ^" in c2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:58:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b1 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::String */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:60:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b2 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:61:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b2 = b1; // Error - ^" in b1 as{TypeError} self::B; + ^" in b1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:62:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b2 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:63:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b2 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::num */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:65:8: Error: A value of type 'A' can't be assigned to a variable of type 'C1'. c1 = a; // Error - ^" in a as{TypeError} self::C1; + ^" in a as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:66:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b1; // Error - ^" in b1 as{TypeError} self::C1; + ^" in b1 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:67:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b2; // Error - ^" in b2 as{TypeError} self::C1; + ^" in b2 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:68:8: Error: A value of type 'C2' can't be assigned to a variable of type 'C1'. c1 = c2; // Error - ^" in c2 as{TypeError} self::C1; + ^" in c2 as{TypeError} self::C1 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:70:8: Error: A value of type 'A' can't be assigned to a variable of type 'C2'. c2 = a; // Error - ^" in a as{TypeError} self::C2; + ^" in a as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:71:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b1; // Error - ^" in b1 as{TypeError} self::C2; + ^" in b1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:72:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b2; // Error - ^" in b2 as{TypeError} self::C2; + ^" in b2 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:73:8: Error: A value of type 'C1' can't be assigned to a variable of type 'C2'. c2 = c1; // Error - ^" in c1 as{TypeError} self::C2; + ^" in c1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:74:8: Error: A value of type 'D1' can't be assigned to a variable of type 'C2'. c2 = d1; // Error - ^" in d1 as{TypeError} self::C2; + ^" in d1 as{TypeError} self::C2 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:76:8: Error: A value of type 'A' can't be assigned to a variable of type 'D1'. d1 = a; // Error - ^" in a as{TypeError} self::D1; + ^" in a as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:77:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b1; // Error - ^" in b1 as{TypeError} self::D1; + ^" in b1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:78:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b2; // Error - ^" in b2 as{TypeError} self::D1; + ^" in b2 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:79:8: Error: A value of type 'C1' can't be assigned to a variable of type 'D1'. d1 = c1; // Error - ^" in c1 as{TypeError} self::D1; + ^" in c1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:80:8: Error: A value of type 'C2' can't be assigned to a variable of type 'D1'. d1 = c2; // Error - ^" in c2 as{TypeError} self::D1; + ^" in c2 as{TypeError} self::D1 /* = core::int */; } -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { self::expect(0.{core::num::+}(5){(core::num) → core::int}, self::A|methodA(a)); self::expect("0", self::B|methodB(b1)); self::expect(1.{core::num::+}(0){(core::num) → core::int}, self::B|methodB(b2)); diff --git a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.strong.transformed.expect index 2a378e19eab..570ebd2fb4a 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.strong.transformed.expect @@ -212,75 +212,75 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(5){(core::num) → core::int}; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = self::B|::T% */ { + lowered final self::B /* = self::B|::T% */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% return #this as{Unchecked} self::B|methodB::T%; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(dynamic it) → self::C1 { - lowered final self::C1 #this = it; +static inline-class-member method C1|(dynamic it) → self::C1 /* = core::int */ { + lowered final self::C1 /* = core::int */ #this = it; return #this; } -static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 +static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(42){(core::num) → core::int}; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(dynamic it) → self::C2 { - lowered final self::C2 #this = it; +static inline-class-member method C2|(dynamic it) → self::C2 /* = core::int */ { + lowered final self::C2 /* = core::int */ #this = it; return #this; } -static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 +static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(87){(core::num) → core::int}; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(dynamic it) → self::D1 { - lowered final self::D1 #this = it; +static inline-class-member method D1|(dynamic it) → self::D1 /* = core::int */ { + lowered final self::D1 /* = core::int */ #this = it; return #this; } -static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 +static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(123){(core::num) → core::int}; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:26:5: Error: The method 'methodB' isn't defined for the class 'A'. Try correcting the name to the name of an existing method, or defining a method named 'methodB'. a.methodB(); // Error @@ -359,81 +359,81 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^" in d1{}.methodC2(); a = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:51:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b1; // Error - ^" in b1 as{TypeError} self::A; + ^" in b1 as{TypeError} self::A /* = core::int */; a = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:52:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b2; // Error - ^" in b2 as{TypeError} self::A; + ^" in b2 as{TypeError} self::A /* = core::int */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:54:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b1 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:55:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b1 = b2; // Error - ^" in b2 as{TypeError} self::B; + ^" in b2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:56:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b1 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:57:8: Error: A value of type 'C2' can't be assigned to a variable of type 'B'. b1 = c2; // Error - ^" in c2 as{TypeError} self::B; + ^" in c2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:58:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b1 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::String */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:60:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b2 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:61:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b2 = b1; // Error - ^" in b1 as{TypeError} self::B; + ^" in b1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:62:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b2 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:63:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b2 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::num */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:65:8: Error: A value of type 'A' can't be assigned to a variable of type 'C1'. c1 = a; // Error - ^" in a as{TypeError} self::C1; + ^" in a as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:66:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b1; // Error - ^" in b1 as{TypeError} self::C1; + ^" in b1 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:67:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b2; // Error - ^" in b2 as{TypeError} self::C1; + ^" in b2 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:68:8: Error: A value of type 'C2' can't be assigned to a variable of type 'C1'. c1 = c2; // Error - ^" in c2 as{TypeError} self::C1; + ^" in c2 as{TypeError} self::C1 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:70:8: Error: A value of type 'A' can't be assigned to a variable of type 'C2'. c2 = a; // Error - ^" in a as{TypeError} self::C2; + ^" in a as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:71:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b1; // Error - ^" in b1 as{TypeError} self::C2; + ^" in b1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:72:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b2; // Error - ^" in b2 as{TypeError} self::C2; + ^" in b2 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:73:8: Error: A value of type 'C1' can't be assigned to a variable of type 'C2'. c2 = c1; // Error - ^" in c1 as{TypeError} self::C2; + ^" in c1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:74:8: Error: A value of type 'D1' can't be assigned to a variable of type 'C2'. c2 = d1; // Error - ^" in d1 as{TypeError} self::C2; + ^" in d1 as{TypeError} self::C2 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:76:8: Error: A value of type 'A' can't be assigned to a variable of type 'D1'. d1 = a; // Error - ^" in a as{TypeError} self::D1; + ^" in a as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:77:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b1; // Error - ^" in b1 as{TypeError} self::D1; + ^" in b1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:78:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b2; // Error - ^" in b2 as{TypeError} self::D1; + ^" in b2 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:79:8: Error: A value of type 'C1' can't be assigned to a variable of type 'D1'. d1 = c1; // Error - ^" in c1 as{TypeError} self::D1; + ^" in c1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:80:8: Error: A value of type 'C2' can't be assigned to a variable of type 'D1'. d1 = c2; // Error - ^" in c2 as{TypeError} self::D1; + ^" in c2 as{TypeError} self::D1 /* = core::int */; } -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { self::expect(0.{core::num::+}(5){(core::num) → core::int}, self::A|methodA(a)); self::expect("0", self::B|methodB(b1)); self::expect(1.{core::num::+}(0){(core::num) → core::int}, self::B|methodB(b2)); diff --git a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.expect index 6aab37ca262..2174dfe034d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.expect @@ -212,75 +212,75 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(5){(core::num) → core::int}; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = self::B|::T% */ { + lowered final self::B /* = self::B|::T% */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% return #this as{Unchecked} self::B|methodB::T%; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(dynamic it) → self::C1 { - lowered final self::C1 #this = it; +static inline-class-member method C1|(dynamic it) → self::C1 /* = core::int */ { + lowered final self::C1 /* = core::int */ #this = it; return #this; } -static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 +static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(42){(core::num) → core::int}; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(dynamic it) → self::C2 { - lowered final self::C2 #this = it; +static inline-class-member method C2|(dynamic it) → self::C2 /* = core::int */ { + lowered final self::C2 /* = core::int */ #this = it; return #this; } -static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 +static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(87){(core::num) → core::int}; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(dynamic it) → self::D1 { - lowered final self::D1 #this = it; +static inline-class-member method D1|(dynamic it) → self::D1 /* = core::int */ { + lowered final self::D1 /* = core::int */ #this = it; return #this; } -static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 +static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(123){(core::num) → core::int}; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:26:5: Error: The method 'methodB' isn't defined for the class 'A'. Try correcting the name to the name of an existing method, or defining a method named 'methodB'. a.methodB(); // Error @@ -359,81 +359,81 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^" in d1{}.methodC2(); a = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:51:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b1; // Error - ^" in b1 as{TypeError} self::A; + ^" in b1 as{TypeError} self::A /* = core::int */; a = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:52:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b2; // Error - ^" in b2 as{TypeError} self::A; + ^" in b2 as{TypeError} self::A /* = core::int */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:54:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b1 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:55:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b1 = b2; // Error - ^" in b2 as{TypeError} self::B; + ^" in b2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:56:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b1 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:57:8: Error: A value of type 'C2' can't be assigned to a variable of type 'B'. b1 = c2; // Error - ^" in c2 as{TypeError} self::B; + ^" in c2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:58:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b1 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::String */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:60:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b2 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:61:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b2 = b1; // Error - ^" in b1 as{TypeError} self::B; + ^" in b1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:62:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b2 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:63:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b2 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::num */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:65:8: Error: A value of type 'A' can't be assigned to a variable of type 'C1'. c1 = a; // Error - ^" in a as{TypeError} self::C1; + ^" in a as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:66:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b1; // Error - ^" in b1 as{TypeError} self::C1; + ^" in b1 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:67:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b2; // Error - ^" in b2 as{TypeError} self::C1; + ^" in b2 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:68:8: Error: A value of type 'C2' can't be assigned to a variable of type 'C1'. c1 = c2; // Error - ^" in c2 as{TypeError} self::C1; + ^" in c2 as{TypeError} self::C1 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:70:8: Error: A value of type 'A' can't be assigned to a variable of type 'C2'. c2 = a; // Error - ^" in a as{TypeError} self::C2; + ^" in a as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:71:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b1; // Error - ^" in b1 as{TypeError} self::C2; + ^" in b1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:72:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b2; // Error - ^" in b2 as{TypeError} self::C2; + ^" in b2 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:73:8: Error: A value of type 'C1' can't be assigned to a variable of type 'C2'. c2 = c1; // Error - ^" in c1 as{TypeError} self::C2; + ^" in c1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:74:8: Error: A value of type 'D1' can't be assigned to a variable of type 'C2'. c2 = d1; // Error - ^" in d1 as{TypeError} self::C2; + ^" in d1 as{TypeError} self::C2 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:76:8: Error: A value of type 'A' can't be assigned to a variable of type 'D1'. d1 = a; // Error - ^" in a as{TypeError} self::D1; + ^" in a as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:77:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b1; // Error - ^" in b1 as{TypeError} self::D1; + ^" in b1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:78:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b2; // Error - ^" in b2 as{TypeError} self::D1; + ^" in b2 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:79:8: Error: A value of type 'C1' can't be assigned to a variable of type 'D1'. d1 = c1; // Error - ^" in c1 as{TypeError} self::D1; + ^" in c1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:80:8: Error: A value of type 'C2' can't be assigned to a variable of type 'D1'. d1 = c2; // Error - ^" in c2 as{TypeError} self::D1; + ^" in c2 as{TypeError} self::D1 /* = core::int */; } -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { self::expect(0.{core::num::+}(5){(core::num) → core::int}, self::A|methodA(a)); self::expect("0", self::B|methodB(b1)); self::expect(1.{core::num::+}(0){(core::num) → core::int}, self::B|methodB(b2)); diff --git a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.modular.expect index 6aab37ca262..2174dfe034d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.modular.expect @@ -212,75 +212,75 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(5){(core::num) → core::int}; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = self::B|::T% */ { + lowered final self::B /* = self::B|::T% */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% return #this as{Unchecked} self::B|methodB::T%; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(dynamic it) → self::C1 { - lowered final self::C1 #this = it; +static inline-class-member method C1|(dynamic it) → self::C1 /* = core::int */ { + lowered final self::C1 /* = core::int */ #this = it; return #this; } -static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 +static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(42){(core::num) → core::int}; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(dynamic it) → self::C2 { - lowered final self::C2 #this = it; +static inline-class-member method C2|(dynamic it) → self::C2 /* = core::int */ { + lowered final self::C2 /* = core::int */ #this = it; return #this; } -static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 +static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(87){(core::num) → core::int}; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(dynamic it) → self::D1 { - lowered final self::D1 #this = it; +static inline-class-member method D1|(dynamic it) → self::D1 /* = core::int */ { + lowered final self::D1 /* = core::int */ #this = it; return #this; } -static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 +static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(123){(core::num) → core::int}; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:26:5: Error: The method 'methodB' isn't defined for the class 'A'. Try correcting the name to the name of an existing method, or defining a method named 'methodB'. a.methodB(); // Error @@ -359,81 +359,81 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^" in d1{}.methodC2(); a = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:51:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b1; // Error - ^" in b1 as{TypeError} self::A; + ^" in b1 as{TypeError} self::A /* = core::int */; a = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:52:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b2; // Error - ^" in b2 as{TypeError} self::A; + ^" in b2 as{TypeError} self::A /* = core::int */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:54:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b1 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:55:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b1 = b2; // Error - ^" in b2 as{TypeError} self::B; + ^" in b2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:56:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b1 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:57:8: Error: A value of type 'C2' can't be assigned to a variable of type 'B'. b1 = c2; // Error - ^" in c2 as{TypeError} self::B; + ^" in c2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:58:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b1 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::String */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:60:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b2 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:61:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b2 = b1; // Error - ^" in b1 as{TypeError} self::B; + ^" in b1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:62:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b2 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:63:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b2 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::num */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:65:8: Error: A value of type 'A' can't be assigned to a variable of type 'C1'. c1 = a; // Error - ^" in a as{TypeError} self::C1; + ^" in a as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:66:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b1; // Error - ^" in b1 as{TypeError} self::C1; + ^" in b1 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:67:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b2; // Error - ^" in b2 as{TypeError} self::C1; + ^" in b2 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:68:8: Error: A value of type 'C2' can't be assigned to a variable of type 'C1'. c1 = c2; // Error - ^" in c2 as{TypeError} self::C1; + ^" in c2 as{TypeError} self::C1 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:70:8: Error: A value of type 'A' can't be assigned to a variable of type 'C2'. c2 = a; // Error - ^" in a as{TypeError} self::C2; + ^" in a as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:71:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b1; // Error - ^" in b1 as{TypeError} self::C2; + ^" in b1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:72:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b2; // Error - ^" in b2 as{TypeError} self::C2; + ^" in b2 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:73:8: Error: A value of type 'C1' can't be assigned to a variable of type 'C2'. c2 = c1; // Error - ^" in c1 as{TypeError} self::C2; + ^" in c1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:74:8: Error: A value of type 'D1' can't be assigned to a variable of type 'C2'. c2 = d1; // Error - ^" in d1 as{TypeError} self::C2; + ^" in d1 as{TypeError} self::C2 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:76:8: Error: A value of type 'A' can't be assigned to a variable of type 'D1'. d1 = a; // Error - ^" in a as{TypeError} self::D1; + ^" in a as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:77:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b1; // Error - ^" in b1 as{TypeError} self::D1; + ^" in b1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:78:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b2; // Error - ^" in b2 as{TypeError} self::D1; + ^" in b2 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:79:8: Error: A value of type 'C1' can't be assigned to a variable of type 'D1'. d1 = c1; // Error - ^" in c1 as{TypeError} self::D1; + ^" in c1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:80:8: Error: A value of type 'C2' can't be assigned to a variable of type 'D1'. d1 = c2; // Error - ^" in c2 as{TypeError} self::D1; + ^" in c2 as{TypeError} self::D1 /* = core::int */; } -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { self::expect(0.{core::num::+}(5){(core::num) → core::int}, self::A|methodA(a)); self::expect("0", self::B|methodB(b1)); self::expect(1.{core::num::+}(0){(core::num) → core::int}, self::B|methodB(b2)); diff --git a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.outline.expect index d39e440d005..90e936a7584 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.outline.expect @@ -14,67 +14,67 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ ; -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int ; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(dynamic it) → self::B +static inline-class-member method B|(dynamic it) → self::B /* = self::B|::T% */ ; -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% ; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(dynamic it) → self::C1 +static inline-class-member method C1|(dynamic it) → self::C1 /* = core::int */ ; -static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 +static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int ; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(dynamic it) → self::C2 +static inline-class-member method C2|(dynamic it) → self::C2 /* = core::int */ ; -static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 +static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int ; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(dynamic it) → self::D1 +static inline-class-member method D1|(dynamic it) → self::D1 /* = core::int */ ; -static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 +static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int ; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic ; -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic ; static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.transformed.expect index 2a378e19eab..570ebd2fb4a 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/implements.dart.weak.transformed.expect @@ -212,75 +212,75 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(5){(core::num) → core::int}; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = self::B|::T% */ { + lowered final self::B /* = self::B|::T% */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% return #this as{Unchecked} self::B|methodB::T%; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(dynamic it) → self::C1 { - lowered final self::C1 #this = it; +static inline-class-member method C1|(dynamic it) → self::C1 /* = core::int */ { + lowered final self::C1 /* = core::int */ #this = it; return #this; } -static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 +static inline-class-member method C1|_#new#tearOff(dynamic it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(42){(core::num) → core::int}; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(dynamic it) → self::C2 { - lowered final self::C2 #this = it; +static inline-class-member method C2|(dynamic it) → self::C2 /* = core::int */ { + lowered final self::C2 /* = core::int */ #this = it; return #this; } -static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 +static inline-class-member method C2|_#new#tearOff(dynamic it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(87){(core::num) → core::int}; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(dynamic it) → self::D1 { - lowered final self::D1 #this = it; +static inline-class-member method D1|(dynamic it) → self::D1 /* = core::int */ { + lowered final self::D1 /* = core::int */ #this = it; return #this; } -static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 +static inline-class-member method D1|_#new#tearOff(dynamic it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(123){(core::num) → core::int}; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:26:5: Error: The method 'methodB' isn't defined for the class 'A'. Try correcting the name to the name of an existing method, or defining a method named 'methodB'. a.methodB(); // Error @@ -359,81 +359,81 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^" in d1{}.methodC2(); a = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:51:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b1; // Error - ^" in b1 as{TypeError} self::A; + ^" in b1 as{TypeError} self::A /* = core::int */; a = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:52:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b2; // Error - ^" in b2 as{TypeError} self::A; + ^" in b2 as{TypeError} self::A /* = core::int */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:54:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b1 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:55:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b1 = b2; // Error - ^" in b2 as{TypeError} self::B; + ^" in b2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:56:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b1 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:57:8: Error: A value of type 'C2' can't be assigned to a variable of type 'B'. b1 = c2; // Error - ^" in c2 as{TypeError} self::B; + ^" in c2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:58:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b1 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::String */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:60:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b2 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:61:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b2 = b1; // Error - ^" in b1 as{TypeError} self::B; + ^" in b1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:62:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b2 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:63:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b2 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::num */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:65:8: Error: A value of type 'A' can't be assigned to a variable of type 'C1'. c1 = a; // Error - ^" in a as{TypeError} self::C1; + ^" in a as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:66:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b1; // Error - ^" in b1 as{TypeError} self::C1; + ^" in b1 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:67:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b2; // Error - ^" in b2 as{TypeError} self::C1; + ^" in b2 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:68:8: Error: A value of type 'C2' can't be assigned to a variable of type 'C1'. c1 = c2; // Error - ^" in c2 as{TypeError} self::C1; + ^" in c2 as{TypeError} self::C1 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:70:8: Error: A value of type 'A' can't be assigned to a variable of type 'C2'. c2 = a; // Error - ^" in a as{TypeError} self::C2; + ^" in a as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:71:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b1; // Error - ^" in b1 as{TypeError} self::C2; + ^" in b1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:72:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b2; // Error - ^" in b2 as{TypeError} self::C2; + ^" in b2 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:73:8: Error: A value of type 'C1' can't be assigned to a variable of type 'C2'. c2 = c1; // Error - ^" in c1 as{TypeError} self::C2; + ^" in c1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:74:8: Error: A value of type 'D1' can't be assigned to a variable of type 'C2'. c2 = d1; // Error - ^" in d1 as{TypeError} self::C2; + ^" in d1 as{TypeError} self::C2 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:76:8: Error: A value of type 'A' can't be assigned to a variable of type 'D1'. d1 = a; // Error - ^" in a as{TypeError} self::D1; + ^" in a as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:77:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b1; // Error - ^" in b1 as{TypeError} self::D1; + ^" in b1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:78:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b2; // Error - ^" in b2 as{TypeError} self::D1; + ^" in b2 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:79:8: Error: A value of type 'C1' can't be assigned to a variable of type 'D1'. d1 = c1; // Error - ^" in c1 as{TypeError} self::D1; + ^" in c1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/implements.dart:80:8: Error: A value of type 'C2' can't be assigned to a variable of type 'D1'. d1 = c2; // Error - ^" in c2 as{TypeError} self::D1; + ^" in c2 as{TypeError} self::D1 /* = core::int */; } -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { self::expect(0.{core::num::+}(5){(core::num) → core::int}, self::A|methodA(a)); self::expect("0", self::B|methodB(b1)); self::expect(1.{core::num::+}(0){(core::num) → core::int}, self::B|methodB(b2)); diff --git a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.strong.expect index 36a3f4b96f5..16f348048be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.strong.expect @@ -51,78 +51,78 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|_(dynamic field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|_(dynamic field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|_(field); -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|_(dynamic field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|_(dynamic field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|_(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class3|_(dynamic field) → self::Class3 { - lowered final self::Class3 #this = field; +static inline-class-member method Class3|_(dynamic field) → self::Class3 /* = core::int */ { + lowered final self::Class3 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 +static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 /* = core::int */ return self::Class3|_(field); -static inline-class-member method Class4|_(dynamic field) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|_(dynamic field) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 +static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 /* = core::int */ return self::Class4|_(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:16:27: Error: 'nonexisting' isn't an instance field of this class. Class4(this.field, this.nonexisting); // Error ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|_(dynamic field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|_(dynamic field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 +static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 /* = core::int */ return self::Class5|_(field); -static inline-class-member method Class5|(core::int field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:20:35: Error: 'field' was already initialized by this constructor. Class5(this.field) : this.field = 42; // Error ^"; return #this; } -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|_(dynamic field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|_(dynamic field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 +static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 /* = core::int */ return self::Class6|_(field); -static inline-class-member method Class6|(core::int field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; final dynamic #t3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:24:29: Error: 'nonexisting' isn't an instance field of this class. Class6(this.field) : this.nonexisting = 42; // Error ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.strong.transformed.expect index 36a3f4b96f5..16f348048be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.strong.transformed.expect @@ -51,78 +51,78 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|_(dynamic field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|_(dynamic field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|_(field); -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|_(dynamic field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|_(dynamic field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|_(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class3|_(dynamic field) → self::Class3 { - lowered final self::Class3 #this = field; +static inline-class-member method Class3|_(dynamic field) → self::Class3 /* = core::int */ { + lowered final self::Class3 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 +static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 /* = core::int */ return self::Class3|_(field); -static inline-class-member method Class4|_(dynamic field) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|_(dynamic field) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 +static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 /* = core::int */ return self::Class4|_(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:16:27: Error: 'nonexisting' isn't an instance field of this class. Class4(this.field, this.nonexisting); // Error ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|_(dynamic field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|_(dynamic field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 +static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 /* = core::int */ return self::Class5|_(field); -static inline-class-member method Class5|(core::int field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:20:35: Error: 'field' was already initialized by this constructor. Class5(this.field) : this.field = 42; // Error ^"; return #this; } -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|_(dynamic field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|_(dynamic field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 +static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 /* = core::int */ return self::Class6|_(field); -static inline-class-member method Class6|(core::int field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; final dynamic #t3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:24:29: Error: 'nonexisting' isn't an instance field of this class. Class6(this.field) : this.nonexisting = 42; // Error ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.expect index 36a3f4b96f5..16f348048be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.expect @@ -51,78 +51,78 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|_(dynamic field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|_(dynamic field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|_(field); -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|_(dynamic field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|_(dynamic field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|_(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class3|_(dynamic field) → self::Class3 { - lowered final self::Class3 #this = field; +static inline-class-member method Class3|_(dynamic field) → self::Class3 /* = core::int */ { + lowered final self::Class3 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 +static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 /* = core::int */ return self::Class3|_(field); -static inline-class-member method Class4|_(dynamic field) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|_(dynamic field) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 +static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 /* = core::int */ return self::Class4|_(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:16:27: Error: 'nonexisting' isn't an instance field of this class. Class4(this.field, this.nonexisting); // Error ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|_(dynamic field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|_(dynamic field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 +static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 /* = core::int */ return self::Class5|_(field); -static inline-class-member method Class5|(core::int field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:20:35: Error: 'field' was already initialized by this constructor. Class5(this.field) : this.field = 42; // Error ^"; return #this; } -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|_(dynamic field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|_(dynamic field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 +static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 /* = core::int */ return self::Class6|_(field); -static inline-class-member method Class6|(core::int field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; final dynamic #t3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:24:29: Error: 'nonexisting' isn't an instance field of this class. Class6(this.field) : this.nonexisting = 42; // Error ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.modular.expect index 36a3f4b96f5..16f348048be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.modular.expect @@ -51,78 +51,78 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|_(dynamic field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|_(dynamic field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|_(field); -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|_(dynamic field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|_(dynamic field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|_(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class3|_(dynamic field) → self::Class3 { - lowered final self::Class3 #this = field; +static inline-class-member method Class3|_(dynamic field) → self::Class3 /* = core::int */ { + lowered final self::Class3 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 +static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 /* = core::int */ return self::Class3|_(field); -static inline-class-member method Class4|_(dynamic field) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|_(dynamic field) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 +static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 /* = core::int */ return self::Class4|_(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:16:27: Error: 'nonexisting' isn't an instance field of this class. Class4(this.field, this.nonexisting); // Error ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|_(dynamic field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|_(dynamic field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 +static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 /* = core::int */ return self::Class5|_(field); -static inline-class-member method Class5|(core::int field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:20:35: Error: 'field' was already initialized by this constructor. Class5(this.field) : this.field = 42; // Error ^"; return #this; } -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|_(dynamic field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|_(dynamic field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 +static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 /* = core::int */ return self::Class6|_(field); -static inline-class-member method Class6|(core::int field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; final dynamic #t3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:24:29: Error: 'nonexisting' isn't an instance field of this class. Class6(this.field) : this.nonexisting = 42; // Error ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.outline.expect index 9e31be93d9a..54f9abb4d71 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.outline.expect @@ -36,47 +36,47 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|_(dynamic field) → self::Class1 +static inline-class-member method Class1|_(dynamic field) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|_(field); -static inline-class-member method Class1|(core::int field) → self::Class1 +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|_(dynamic field) → self::Class2 +static inline-class-member method Class2|_(dynamic field) → self::Class2 /* = core::int */ ; -static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|_(field); -static inline-class-member method Class2|(core::int field) → self::Class2 +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ ; -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class3|_(dynamic field) → self::Class3 +static inline-class-member method Class3|_(dynamic field) → self::Class3 /* = core::int */ ; -static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 +static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 /* = core::int */ return self::Class3|_(field); -static inline-class-member method Class4|_(dynamic field) → self::Class4 +static inline-class-member method Class4|_(dynamic field) → self::Class4 /* = core::int */ ; -static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 +static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 /* = core::int */ return self::Class4|_(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ ; -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|_(dynamic field) → self::Class5 +static inline-class-member method Class5|_(dynamic field) → self::Class5 /* = core::int */ ; -static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 +static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 /* = core::int */ return self::Class5|_(field); -static inline-class-member method Class5|(core::int field) → self::Class5 +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ ; -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|_(dynamic field) → self::Class6 +static inline-class-member method Class6|_(dynamic field) → self::Class6 /* = core::int */ ; -static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 +static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 /* = core::int */ return self::Class6|_(field); -static inline-class-member method Class6|(core::int field) → self::Class6 +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ ; -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.transformed.expect index 36a3f4b96f5..16f348048be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/initializers.dart.weak.transformed.expect @@ -51,78 +51,78 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|_(dynamic field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|_(dynamic field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 +static inline-class-member method Class1|_#_#tearOff(dynamic field) → self::Class1 /* = core::int */ return self::Class1|_(field); -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|_(dynamic field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|_(dynamic field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 +static inline-class-member method Class2|_#_#tearOff(dynamic field) → self::Class2 /* = core::int */ return self::Class2|_(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class3|_(dynamic field) → self::Class3 { - lowered final self::Class3 #this = field; +static inline-class-member method Class3|_(dynamic field) → self::Class3 /* = core::int */ { + lowered final self::Class3 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 +static inline-class-member method Class3|_#_#tearOff(dynamic field) → self::Class3 /* = core::int */ return self::Class3|_(field); -static inline-class-member method Class4|_(dynamic field) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|_(dynamic field) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 +static inline-class-member method Class4|_#_#tearOff(dynamic field) → self::Class4 /* = core::int */ return self::Class4|_(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:16:27: Error: 'nonexisting' isn't an instance field of this class. Class4(this.field, this.nonexisting); // Error ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|_(dynamic field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|_(dynamic field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 +static inline-class-member method Class5|_#_#tearOff(dynamic field) → self::Class5 /* = core::int */ return self::Class5|_(field); -static inline-class-member method Class5|(core::int field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:20:35: Error: 'field' was already initialized by this constructor. Class5(this.field) : this.field = 42; // Error ^"; return #this; } -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|_(dynamic field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|_(dynamic field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 +static inline-class-member method Class6|_#_#tearOff(dynamic field) → self::Class6 /* = core::int */ return self::Class6|_(field); -static inline-class-member method Class6|(core::int field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; final dynamic #t3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/initializers.dart:24:29: Error: 'nonexisting' isn't an instance field of this class. Class6(this.field) : this.nonexisting = 42; // Error ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.strong.expect index 5ab42480678..75c1dce4641 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.strong.expect @@ -12,16 +12,16 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(dynamic it) → self::Class3 { - lowered final self::Class3 #this = it; +static inline-class-member method Class3|(dynamic it) → self::Class3 /* = core::List */ { + lowered final self::Class3 /* = core::List */ #this = it; return #this; } -static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic {} +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic {} diff --git a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.strong.transformed.expect index 5ab42480678..75c1dce4641 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.strong.transformed.expect @@ -12,16 +12,16 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(dynamic it) → self::Class3 { - lowered final self::Class3 #this = it; +static inline-class-member method Class3|(dynamic it) → self::Class3 /* = core::List */ { + lowered final self::Class3 /* = core::List */ #this = it; return #this; } -static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic {} +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic {} diff --git a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.expect index 5ab42480678..75c1dce4641 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.expect @@ -12,16 +12,16 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(dynamic it) → self::Class3 { - lowered final self::Class3 #this = it; +static inline-class-member method Class3|(dynamic it) → self::Class3 /* = core::List */ { + lowered final self::Class3 /* = core::List */ #this = it; return #this; } -static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic {} +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic {} diff --git a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.modular.expect index 5ab42480678..75c1dce4641 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.modular.expect @@ -12,16 +12,16 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(dynamic it) → self::Class3 { - lowered final self::Class3 #this = it; +static inline-class-member method Class3|(dynamic it) → self::Class3 /* = core::List */ { + lowered final self::Class3 /* = core::List */ #this = it; return #this; } -static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic {} +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic {} diff --git a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.outline.expect index feaf1fa07ac..d05e60b3a35 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.outline.expect @@ -12,13 +12,13 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(dynamic it) → self::Class3 +static inline-class-member method Class3|(dynamic it) → self::Class3 /* = core::List */ ; -static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.transformed.expect index 5ab42480678..75c1dce4641 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/inline_class_declaration.dart.weak.transformed.expect @@ -12,16 +12,16 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(dynamic it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(dynamic it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(dynamic it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(dynamic it) → self::Class3 { - lowered final self::Class3 #this = it; +static inline-class-member method Class3|(dynamic it) → self::Class3 /* = core::List */ { + lowered final self::Class3 /* = core::List */ #this = it; return #this; } -static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(dynamic it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic {} +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic {} diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.strong.expect index ba018a10b51..f6aefff828e 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.strong.expect @@ -6,13 +6,13 @@ extension type I(dynamic value) → self::I { - lowered final self::I #this = value; +static inline-class-member method I|(dynamic value) → self::I /* = self::I|::X% */ { + lowered final self::I /* = self::I|::X% */ #this = value; return #this; } -static inline-class-member method I|_#new#tearOff(dynamic value) → self::I +static inline-class-member method I|_#new#tearOff(dynamic value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void {} +static method f(self::I /* = core::int */ i) → void {} static method main() → void { self::f(self::I|(2)); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.strong.transformed.expect index ba018a10b51..f6aefff828e 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.strong.transformed.expect @@ -6,13 +6,13 @@ extension type I(dynamic value) → self::I { - lowered final self::I #this = value; +static inline-class-member method I|(dynamic value) → self::I /* = self::I|::X% */ { + lowered final self::I /* = self::I|::X% */ #this = value; return #this; } -static inline-class-member method I|_#new#tearOff(dynamic value) → self::I +static inline-class-member method I|_#new#tearOff(dynamic value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void {} +static method f(self::I /* = core::int */ i) → void {} static method main() → void { self::f(self::I|(2)); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.expect index ba018a10b51..f6aefff828e 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.expect @@ -6,13 +6,13 @@ extension type I(dynamic value) → self::I { - lowered final self::I #this = value; +static inline-class-member method I|(dynamic value) → self::I /* = self::I|::X% */ { + lowered final self::I /* = self::I|::X% */ #this = value; return #this; } -static inline-class-member method I|_#new#tearOff(dynamic value) → self::I +static inline-class-member method I|_#new#tearOff(dynamic value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void {} +static method f(self::I /* = core::int */ i) → void {} static method main() → void { self::f(self::I|(2)); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.modular.expect index ba018a10b51..f6aefff828e 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.modular.expect @@ -6,13 +6,13 @@ extension type I(dynamic value) → self::I { - lowered final self::I #this = value; +static inline-class-member method I|(dynamic value) → self::I /* = self::I|::X% */ { + lowered final self::I /* = self::I|::X% */ #this = value; return #this; } -static inline-class-member method I|_#new#tearOff(dynamic value) → self::I +static inline-class-member method I|_#new#tearOff(dynamic value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void {} +static method f(self::I /* = core::int */ i) → void {} static method main() → void { self::f(self::I|(2)); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.outline.expect index fbacf794b6e..6c72a28763a 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.outline.expect @@ -6,11 +6,11 @@ extension type I(dynamic value) → self::I +static inline-class-member method I|(dynamic value) → self::I /* = self::I|::X% */ ; -static inline-class-member method I|_#new#tearOff(dynamic value) → self::I +static inline-class-member method I|_#new#tearOff(dynamic value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void +static method f(self::I /* = core::int */ i) → void ; static method main() → void ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.transformed.expect index ba018a10b51..f6aefff828e 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51146.dart.weak.transformed.expect @@ -6,13 +6,13 @@ extension type I(dynamic value) → self::I { - lowered final self::I #this = value; +static inline-class-member method I|(dynamic value) → self::I /* = self::I|::X% */ { + lowered final self::I /* = self::I|::X% */ #this = value; return #this; } -static inline-class-member method I|_#new#tearOff(dynamic value) → self::I +static inline-class-member method I|_#new#tearOff(dynamic value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void {} +static method f(self::I /* = core::int */ i) → void {} static method main() → void { self::f(self::I|(2)); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.strong.expect index 522c1d67eb9..dce45a1fc19 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.strong.expect @@ -20,46 +20,46 @@ extension type K(T% i) { static factory • = self::K|; static tearoff • = self::K|_#new#tearOff; } -static inline-class-member method I|_(dynamic i) → self::I { - lowered final self::I #this = i; +static inline-class-member method I|_(dynamic i) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = i; return #this; } -static inline-class-member method I|_#_#tearOff(dynamic i) → self::I +static inline-class-member method I|_#_#tearOff(dynamic i) → self::I /* = core::int */ return self::I|_(i); -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|_(dynamic i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(dynamic i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(dynamic i) → self::J +static inline-class-member method J|_#_#tearOff(dynamic i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method K|_(dynamic i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(dynamic i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(dynamic i) → self::K +static inline-class-member method K|_#_#tearOff(dynamic i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.strong.transformed.expect index 522c1d67eb9..dce45a1fc19 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.strong.transformed.expect @@ -20,46 +20,46 @@ extension type K(T% i) { static factory • = self::K|; static tearoff • = self::K|_#new#tearOff; } -static inline-class-member method I|_(dynamic i) → self::I { - lowered final self::I #this = i; +static inline-class-member method I|_(dynamic i) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = i; return #this; } -static inline-class-member method I|_#_#tearOff(dynamic i) → self::I +static inline-class-member method I|_#_#tearOff(dynamic i) → self::I /* = core::int */ return self::I|_(i); -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|_(dynamic i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(dynamic i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(dynamic i) → self::J +static inline-class-member method J|_#_#tearOff(dynamic i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method K|_(dynamic i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(dynamic i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(dynamic i) → self::K +static inline-class-member method K|_#_#tearOff(dynamic i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.expect index 897f6161012..ee18017a9fe 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.expect @@ -20,46 +20,46 @@ extension type K(T% i) { static factory • = self::K|; static tearoff • = self::K|_#new#tearOff; } -static inline-class-member method I|_(dynamic i) → self::I { - lowered final self::I #this = i; +static inline-class-member method I|_(dynamic i) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = i; return #this; } -static inline-class-member method I|_#_#tearOff(dynamic i) → self::I +static inline-class-member method I|_#_#tearOff(dynamic i) → self::I /* = core::int */ return self::I|_(i); -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|_(dynamic i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(dynamic i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(dynamic i) → self::J +static inline-class-member method J|_#_#tearOff(dynamic i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method K|_(dynamic i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(dynamic i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(dynamic i) → self::K +static inline-class-member method K|_#_#tearOff(dynamic i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.modular.expect index 897f6161012..ee18017a9fe 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.modular.expect @@ -20,46 +20,46 @@ extension type K(T% i) { static factory • = self::K|; static tearoff • = self::K|_#new#tearOff; } -static inline-class-member method I|_(dynamic i) → self::I { - lowered final self::I #this = i; +static inline-class-member method I|_(dynamic i) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = i; return #this; } -static inline-class-member method I|_#_#tearOff(dynamic i) → self::I +static inline-class-member method I|_#_#tearOff(dynamic i) → self::I /* = core::int */ return self::I|_(i); -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|_(dynamic i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(dynamic i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(dynamic i) → self::J +static inline-class-member method J|_#_#tearOff(dynamic i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method K|_(dynamic i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(dynamic i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(dynamic i) → self::K +static inline-class-member method K|_#_#tearOff(dynamic i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.outline.expect index 9e551087ab6..f31f0ec6f81 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.outline.expect @@ -20,29 +20,29 @@ extension type K(T% i) { static factory • = self::K|; static tearoff • = self::K|_#new#tearOff; } -static inline-class-member method I|_(dynamic i) → self::I +static inline-class-member method I|_(dynamic i) → self::I /* = core::int */ ; -static inline-class-member method I|_#_#tearOff(dynamic i) → self::I +static inline-class-member method I|_#_#tearOff(dynamic i) → self::I /* = core::int */ return self::I|_(i); -static inline-class-member method I|() → self::I +static inline-class-member method I|() → self::I /* = core::int */ ; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|_(dynamic i) → self::J +static inline-class-member method J|_(dynamic i) → self::J /* = core::int */ ; -static inline-class-member method J|_#_#tearOff(dynamic i) → self::J +static inline-class-member method J|_#_#tearOff(dynamic i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ ; -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method K|_(dynamic i) → self::K +static inline-class-member method K|_(dynamic i) → self::K /* = self::K|_::T% */ ; -static inline-class-member method K|_#_#tearOff(dynamic i) → self::K +static inline-class-member method K|_#_#tearOff(dynamic i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ ; -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.transformed.expect index 897f6161012..ee18017a9fe 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51285.dart.weak.transformed.expect @@ -20,46 +20,46 @@ extension type K(T% i) { static factory • = self::K|; static tearoff • = self::K|_#new#tearOff; } -static inline-class-member method I|_(dynamic i) → self::I { - lowered final self::I #this = i; +static inline-class-member method I|_(dynamic i) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = i; return #this; } -static inline-class-member method I|_#_#tearOff(dynamic i) → self::I +static inline-class-member method I|_#_#tearOff(dynamic i) → self::I /* = core::int */ return self::I|_(i); -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|_(dynamic i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(dynamic i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(dynamic i) → self::J +static inline-class-member method J|_#_#tearOff(dynamic i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method K|_(dynamic i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(dynamic i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(dynamic i) → self::K +static inline-class-member method K|_#_#tearOff(dynamic i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.strong.expect index 65dca50dcee..396539a787b 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.strong.expect @@ -8,12 +8,12 @@ extension type I(core::int _i) { constructor • = self::I|; tearoff • = self::I|_#new#tearOff; } -static inline-class-member method I|(dynamic _i) → self::I { - lowered final self::I #this = _i; +static inline-class-member method I|(dynamic _i) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = _i; return #this; } -static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I +static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I /* = core::int */ return self::I|(_i); -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = core::int */ #this) → core::int return 0; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void {} +static inline-class-member method I|set#i(lowered final self::I /* = core::int */ #this, core::int val) → void {} diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.strong.transformed.expect index 65dca50dcee..396539a787b 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.strong.transformed.expect @@ -8,12 +8,12 @@ extension type I(core::int _i) { constructor • = self::I|; tearoff • = self::I|_#new#tearOff; } -static inline-class-member method I|(dynamic _i) → self::I { - lowered final self::I #this = _i; +static inline-class-member method I|(dynamic _i) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = _i; return #this; } -static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I +static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I /* = core::int */ return self::I|(_i); -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = core::int */ #this) → core::int return 0; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void {} +static inline-class-member method I|set#i(lowered final self::I /* = core::int */ #this, core::int val) → void {} diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.expect index 65dca50dcee..396539a787b 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.expect @@ -8,12 +8,12 @@ extension type I(core::int _i) { constructor • = self::I|; tearoff • = self::I|_#new#tearOff; } -static inline-class-member method I|(dynamic _i) → self::I { - lowered final self::I #this = _i; +static inline-class-member method I|(dynamic _i) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = _i; return #this; } -static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I +static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I /* = core::int */ return self::I|(_i); -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = core::int */ #this) → core::int return 0; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void {} +static inline-class-member method I|set#i(lowered final self::I /* = core::int */ #this, core::int val) → void {} diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.modular.expect index 65dca50dcee..396539a787b 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.modular.expect @@ -8,12 +8,12 @@ extension type I(core::int _i) { constructor • = self::I|; tearoff • = self::I|_#new#tearOff; } -static inline-class-member method I|(dynamic _i) → self::I { - lowered final self::I #this = _i; +static inline-class-member method I|(dynamic _i) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = _i; return #this; } -static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I +static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I /* = core::int */ return self::I|(_i); -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = core::int */ #this) → core::int return 0; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void {} +static inline-class-member method I|set#i(lowered final self::I /* = core::int */ #this, core::int val) → void {} diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.outline.expect index 187f4ea98d7..9165748e4a7 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.outline.expect @@ -8,11 +8,11 @@ extension type I(core::int _i) { constructor • = self::I|; tearoff • = self::I|_#new#tearOff; } -static inline-class-member method I|(dynamic _i) → self::I +static inline-class-member method I|(dynamic _i) → self::I /* = core::int */ ; -static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I +static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I /* = core::int */ return self::I|(_i); -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = core::int */ #this) → core::int ; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void +static inline-class-member method I|set#i(lowered final self::I /* = core::int */ #this, core::int val) → void ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.transformed.expect index 65dca50dcee..396539a787b 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51299.dart.weak.transformed.expect @@ -8,12 +8,12 @@ extension type I(core::int _i) { constructor • = self::I|; tearoff • = self::I|_#new#tearOff; } -static inline-class-member method I|(dynamic _i) → self::I { - lowered final self::I #this = _i; +static inline-class-member method I|(dynamic _i) → self::I /* = core::int */ { + lowered final self::I /* = core::int */ #this = _i; return #this; } -static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I +static inline-class-member method I|_#new#tearOff(dynamic _i) → self::I /* = core::int */ return self::I|(_i); -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = core::int */ #this) → core::int return 0; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void {} +static inline-class-member method I|set#i(lowered final self::I /* = core::int */ #this, core::int val) → void {} diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.strong.expect index f7dc8b7284b..08e5e315f76 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.strong.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,58 +15,58 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(dynamic value) → self::JSAny { - lowered final self::JSAny #this = value; +static inline-class-member method JSAny|(dynamic value) → self::JSAny /* = core::Object */ { + lowered final self::JSAny /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(dynamic value) → self::JSObject { - lowered final self::JSObject #this = value; +static inline-class-member method JSObject|(dynamic value) → self::JSObject /* = core::Object */ { + lowered final self::JSObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(dynamic value) → self::JSArray { - lowered final self::JSArray #this = value; +static inline-class-member method JSArray|(dynamic value) → self::JSArray /* = core::List */ { + lowered final self::JSArray /* = core::List */ #this = value; return #this; } -static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject { - lowered final self::JSExportedDartObject #this = value; +static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject /* = core::Object */ { + lowered final self::JSExportedDartObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(dynamic value) → self::JSNumber { - lowered final self::JSNumber #this = value; +static inline-class-member method JSNumber|(dynamic value) → self::JSNumber /* = core::double */ { + lowered final self::JSNumber /* = core::double */ #this = value; return #this; } -static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(#this); -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ return self::JSArray|(#this); -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ return self::JSNumber|(#this); static method main() → void { - self::JSArray arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); + self::JSArray /* = core::List */ arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.strong.transformed.expect index ae36123aeae..e29d4e1d111 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.strong.transformed.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,58 +15,58 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(dynamic value) → self::JSAny { - lowered final self::JSAny #this = value; +static inline-class-member method JSAny|(dynamic value) → self::JSAny /* = core::Object */ { + lowered final self::JSAny /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(dynamic value) → self::JSObject { - lowered final self::JSObject #this = value; +static inline-class-member method JSObject|(dynamic value) → self::JSObject /* = core::Object */ { + lowered final self::JSObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(dynamic value) → self::JSArray { - lowered final self::JSArray #this = value; +static inline-class-member method JSArray|(dynamic value) → self::JSArray /* = core::List */ { + lowered final self::JSArray /* = core::List */ #this = value; return #this; } -static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject { - lowered final self::JSExportedDartObject #this = value; +static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject /* = core::Object */ { + lowered final self::JSExportedDartObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(dynamic value) → self::JSNumber { - lowered final self::JSNumber #this = value; +static inline-class-member method JSNumber|(dynamic value) → self::JSNumber /* = core::double */ { + lowered final self::JSNumber /* = core::double */ #this = value; return #this; } -static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(#this); -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ return self::JSArray|(#this); -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ return self::JSNumber|(#this); static method main() → void { - self::JSArray arr = self::ListToJSArray|get#toJS(core::_GrowableList::_literal2(self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo"))); + self::JSArray /* = core::List */ arr = self::ListToJSArray|get#toJS(core::_GrowableList::_literal2(self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo"))); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.expect index f7dc8b7284b..08e5e315f76 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,58 +15,58 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(dynamic value) → self::JSAny { - lowered final self::JSAny #this = value; +static inline-class-member method JSAny|(dynamic value) → self::JSAny /* = core::Object */ { + lowered final self::JSAny /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(dynamic value) → self::JSObject { - lowered final self::JSObject #this = value; +static inline-class-member method JSObject|(dynamic value) → self::JSObject /* = core::Object */ { + lowered final self::JSObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(dynamic value) → self::JSArray { - lowered final self::JSArray #this = value; +static inline-class-member method JSArray|(dynamic value) → self::JSArray /* = core::List */ { + lowered final self::JSArray /* = core::List */ #this = value; return #this; } -static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject { - lowered final self::JSExportedDartObject #this = value; +static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject /* = core::Object */ { + lowered final self::JSExportedDartObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(dynamic value) → self::JSNumber { - lowered final self::JSNumber #this = value; +static inline-class-member method JSNumber|(dynamic value) → self::JSNumber /* = core::double */ { + lowered final self::JSNumber /* = core::double */ #this = value; return #this; } -static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(#this); -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ return self::JSArray|(#this); -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ return self::JSNumber|(#this); static method main() → void { - self::JSArray arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); + self::JSArray /* = core::List */ arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.modular.expect index f7dc8b7284b..08e5e315f76 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.modular.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,58 +15,58 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(dynamic value) → self::JSAny { - lowered final self::JSAny #this = value; +static inline-class-member method JSAny|(dynamic value) → self::JSAny /* = core::Object */ { + lowered final self::JSAny /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(dynamic value) → self::JSObject { - lowered final self::JSObject #this = value; +static inline-class-member method JSObject|(dynamic value) → self::JSObject /* = core::Object */ { + lowered final self::JSObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(dynamic value) → self::JSArray { - lowered final self::JSArray #this = value; +static inline-class-member method JSArray|(dynamic value) → self::JSArray /* = core::List */ { + lowered final self::JSArray /* = core::List */ #this = value; return #this; } -static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject { - lowered final self::JSExportedDartObject #this = value; +static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject /* = core::Object */ { + lowered final self::JSExportedDartObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(dynamic value) → self::JSNumber { - lowered final self::JSNumber #this = value; +static inline-class-member method JSNumber|(dynamic value) → self::JSNumber /* = core::double */ { + lowered final self::JSNumber /* = core::double */ #this = value; return #this; } -static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(#this); -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ return self::JSArray|(#this); -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ return self::JSNumber|(#this); static method main() → void { - self::JSArray arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); + self::JSArray /* = core::List */ arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.outline.expect index 3e7c3acf28d..9e8b0cceaa4 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.outline.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,47 +15,47 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(dynamic value) → self::JSAny +static inline-class-member method JSAny|(dynamic value) → self::JSAny /* = core::Object */ ; -static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(dynamic value) → self::JSObject +static inline-class-member method JSObject|(dynamic value) → self::JSObject /* = core::Object */ ; -static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(dynamic value) → self::JSArray +static inline-class-member method JSArray|(dynamic value) → self::JSArray /* = core::List */ ; -static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject /* = core::Object */ ; -static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(dynamic value) → self::JSNumber +static inline-class-member method JSNumber|(dynamic value) → self::JSNumber /* = core::double */ ; -static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ ; -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ ; -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ ; static method main() → void ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.transformed.expect index ae36123aeae..e29d4e1d111 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue51556.dart.weak.transformed.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,58 +15,58 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(dynamic value) → self::JSAny { - lowered final self::JSAny #this = value; +static inline-class-member method JSAny|(dynamic value) → self::JSAny /* = core::Object */ { + lowered final self::JSAny /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(dynamic value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(dynamic value) → self::JSObject { - lowered final self::JSObject #this = value; +static inline-class-member method JSObject|(dynamic value) → self::JSObject /* = core::Object */ { + lowered final self::JSObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(dynamic value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(dynamic value) → self::JSArray { - lowered final self::JSArray #this = value; +static inline-class-member method JSArray|(dynamic value) → self::JSArray /* = core::List */ { + lowered final self::JSArray /* = core::List */ #this = value; return #this; } -static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(dynamic value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject { - lowered final self::JSExportedDartObject #this = value; +static inline-class-member method JSExportedDartObject|(dynamic value) → self::JSExportedDartObject /* = core::Object */ { + lowered final self::JSExportedDartObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(dynamic value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(dynamic value) → self::JSNumber { - lowered final self::JSNumber #this = value; +static inline-class-member method JSNumber|(dynamic value) → self::JSNumber /* = core::double */ { + lowered final self::JSNumber /* = core::double */ #this = value; return #this; } -static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(dynamic value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(#this); -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ return self::JSArray|(#this); -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ return self::JSNumber|(#this); static method main() → void { - self::JSArray arr = self::ListToJSArray|get#toJS(core::_GrowableList::_literal2(self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo"))); + self::JSArray /* = core::List */ arr = self::ListToJSArray|get#toJS(core::_GrowableList::_literal2(self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo"))); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.strong.expect index 60718a67aa0..ad1ac13a2be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.strong.expect @@ -37,61 +37,61 @@ extension type Bar(dynamic i) { constructor • = self::Bar|; tearoff • = self::Bar|_#new#tearOff; } -static inline-class-member method Foo|_(dynamic i) → self::Foo { - lowered final self::Foo #this = i; +static inline-class-member method Foo|_(dynamic i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = i; return #this; } -static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|(core::int i) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|_(i.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|named(a, subtract: b); return #this; } -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final core::int #t1 = b; #this = self::Foo|named(a, subtract: #t1); return #this; } -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo { - lowered final self::Foo #this = value.{core::num::-}(subtract){(core::num) → core::int}; +static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = value.{core::num::-}(subtract){(core::num) → core::int}; return #this; } -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/issue52119.dart:12:26: Error: Couldn't find constructor 'Foo.unresolved'. Foo.erroneous() : this.unresolved(); // Error ^^^^^^^^^^"; return #this; } -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|_(dynamic i) → self::Bar { - lowered final self::Bar #this = i; +static inline-class-member method Bar|_(dynamic i) → self::Bar /* = dynamic */ { + lowered final self::Bar /* = dynamic */ #this = i; return #this; } -static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar /* = dynamic */ return self::Bar|_(i); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar { - lowered final self::Bar #this; +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = dynamic */ { + lowered final self::Bar /* = dynamic */ #this; #this = self::Bar|_(i); return #this; } -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = dynamic */ return self::Bar|(i); static method main() → dynamic { self::expect(44, self::Foo|(42) as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.strong.transformed.expect index 60718a67aa0..ad1ac13a2be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.strong.transformed.expect @@ -37,61 +37,61 @@ extension type Bar(dynamic i) { constructor • = self::Bar|; tearoff • = self::Bar|_#new#tearOff; } -static inline-class-member method Foo|_(dynamic i) → self::Foo { - lowered final self::Foo #this = i; +static inline-class-member method Foo|_(dynamic i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = i; return #this; } -static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|(core::int i) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|_(i.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|named(a, subtract: b); return #this; } -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final core::int #t1 = b; #this = self::Foo|named(a, subtract: #t1); return #this; } -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo { - lowered final self::Foo #this = value.{core::num::-}(subtract){(core::num) → core::int}; +static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = value.{core::num::-}(subtract){(core::num) → core::int}; return #this; } -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/issue52119.dart:12:26: Error: Couldn't find constructor 'Foo.unresolved'. Foo.erroneous() : this.unresolved(); // Error ^^^^^^^^^^"; return #this; } -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|_(dynamic i) → self::Bar { - lowered final self::Bar #this = i; +static inline-class-member method Bar|_(dynamic i) → self::Bar /* = dynamic */ { + lowered final self::Bar /* = dynamic */ #this = i; return #this; } -static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar /* = dynamic */ return self::Bar|_(i); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar { - lowered final self::Bar #this; +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = dynamic */ { + lowered final self::Bar /* = dynamic */ #this; #this = self::Bar|_(i); return #this; } -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = dynamic */ return self::Bar|(i); static method main() → dynamic { self::expect(44, self::Foo|(42) as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.expect index 60718a67aa0..ad1ac13a2be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.expect @@ -37,61 +37,61 @@ extension type Bar(dynamic i) { constructor • = self::Bar|; tearoff • = self::Bar|_#new#tearOff; } -static inline-class-member method Foo|_(dynamic i) → self::Foo { - lowered final self::Foo #this = i; +static inline-class-member method Foo|_(dynamic i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = i; return #this; } -static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|(core::int i) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|_(i.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|named(a, subtract: b); return #this; } -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final core::int #t1 = b; #this = self::Foo|named(a, subtract: #t1); return #this; } -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo { - lowered final self::Foo #this = value.{core::num::-}(subtract){(core::num) → core::int}; +static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = value.{core::num::-}(subtract){(core::num) → core::int}; return #this; } -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/issue52119.dart:12:26: Error: Couldn't find constructor 'Foo.unresolved'. Foo.erroneous() : this.unresolved(); // Error ^^^^^^^^^^"; return #this; } -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|_(dynamic i) → self::Bar { - lowered final self::Bar #this = i; +static inline-class-member method Bar|_(dynamic i) → self::Bar /* = dynamic */ { + lowered final self::Bar /* = dynamic */ #this = i; return #this; } -static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar /* = dynamic */ return self::Bar|_(i); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar { - lowered final self::Bar #this; +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = dynamic */ { + lowered final self::Bar /* = dynamic */ #this; #this = self::Bar|_(i); return #this; } -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = dynamic */ return self::Bar|(i); static method main() → dynamic { self::expect(44, self::Foo|(42) as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.modular.expect index 60718a67aa0..ad1ac13a2be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.modular.expect @@ -37,61 +37,61 @@ extension type Bar(dynamic i) { constructor • = self::Bar|; tearoff • = self::Bar|_#new#tearOff; } -static inline-class-member method Foo|_(dynamic i) → self::Foo { - lowered final self::Foo #this = i; +static inline-class-member method Foo|_(dynamic i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = i; return #this; } -static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|(core::int i) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|_(i.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|named(a, subtract: b); return #this; } -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final core::int #t1 = b; #this = self::Foo|named(a, subtract: #t1); return #this; } -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo { - lowered final self::Foo #this = value.{core::num::-}(subtract){(core::num) → core::int}; +static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = value.{core::num::-}(subtract){(core::num) → core::int}; return #this; } -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/issue52119.dart:12:26: Error: Couldn't find constructor 'Foo.unresolved'. Foo.erroneous() : this.unresolved(); // Error ^^^^^^^^^^"; return #this; } -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|_(dynamic i) → self::Bar { - lowered final self::Bar #this = i; +static inline-class-member method Bar|_(dynamic i) → self::Bar /* = dynamic */ { + lowered final self::Bar /* = dynamic */ #this = i; return #this; } -static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar /* = dynamic */ return self::Bar|_(i); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar { - lowered final self::Bar #this; +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = dynamic */ { + lowered final self::Bar /* = dynamic */ #this; #this = self::Bar|_(i); return #this; } -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = dynamic */ return self::Bar|(i); static method main() → dynamic { self::expect(44, self::Foo|(42) as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.outline.expect index beece73b54a..9ec6bd34b83 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.outline.expect @@ -22,37 +22,37 @@ extension type Bar(dynamic i) { constructor • = self::Bar|; tearoff • = self::Bar|_#new#tearOff; } -static inline-class-member method Foo|_(dynamic i) → self::Foo +static inline-class-member method Foo|_(dynamic i) → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|(core::int i) → self::Foo +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = null}) → self::Foo +static inline-class-member method Foo|named(core::int value, {required core::int subtract = null}) → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|_(dynamic i) → self::Bar +static inline-class-member method Bar|_(dynamic i) → self::Bar /* = dynamic */ ; -static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar /* = dynamic */ return self::Bar|_(i); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = dynamic */ ; -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = dynamic */ return self::Bar|(i); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.transformed.expect index 60718a67aa0..ad1ac13a2be 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52119.dart.weak.transformed.expect @@ -37,61 +37,61 @@ extension type Bar(dynamic i) { constructor • = self::Bar|; tearoff • = self::Bar|_#new#tearOff; } -static inline-class-member method Foo|_(dynamic i) → self::Foo { - lowered final self::Foo #this = i; +static inline-class-member method Foo|_(dynamic i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = i; return #this; } -static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(dynamic i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|(core::int i) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|_(i.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|named(a, subtract: b); return #this; } -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final core::int #t1 = b; #this = self::Foo|named(a, subtract: #t1); return #this; } -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo { - lowered final self::Foo #this = value.{core::num::-}(subtract){(core::num) → core::int}; +static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = value.{core::num::-}(subtract){(core::num) → core::int}; return #this; } -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/issue52119.dart:12:26: Error: Couldn't find constructor 'Foo.unresolved'. Foo.erroneous() : this.unresolved(); // Error ^^^^^^^^^^"; return #this; } -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|_(dynamic i) → self::Bar { - lowered final self::Bar #this = i; +static inline-class-member method Bar|_(dynamic i) → self::Bar /* = dynamic */ { + lowered final self::Bar /* = dynamic */ #this = i; return #this; } -static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(dynamic i) → self::Bar /* = dynamic */ return self::Bar|_(i); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar { - lowered final self::Bar #this; +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = dynamic */ { + lowered final self::Bar /* = dynamic */ #this; #this = self::Bar|_(i); return #this; } -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = dynamic */ return self::Bar|(i); static method main() → dynamic { self::expect(44, self::Foo|(42) as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.strong.expect index 9075d7c809b..b9defbc9589 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.strong.expect @@ -10,27 +10,27 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|_(dynamic obj) → self::X { - lowered final self::X #this = obj; +static inline-class-member method X|_(dynamic obj) → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = obj; return #this; } -static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X +static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X /* = core::int */ return self::X|_(obj); -static inline-class-member method X|() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|named() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void { - core::print(#C1(){() → self::X} as{Unchecked} core::int); - core::print(#C2(){() → self::X} as{Unchecked} core::int); + core::print(#C1(){() → self::X /* = core::int */} as{Unchecked} core::int); + core::print(#C2(){() → self::X /* = core::int */} as{Unchecked} core::int); } constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.strong.transformed.expect index 9075d7c809b..b9defbc9589 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.strong.transformed.expect @@ -10,27 +10,27 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|_(dynamic obj) → self::X { - lowered final self::X #this = obj; +static inline-class-member method X|_(dynamic obj) → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = obj; return #this; } -static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X +static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X /* = core::int */ return self::X|_(obj); -static inline-class-member method X|() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|named() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void { - core::print(#C1(){() → self::X} as{Unchecked} core::int); - core::print(#C2(){() → self::X} as{Unchecked} core::int); + core::print(#C1(){() → self::X /* = core::int */} as{Unchecked} core::int); + core::print(#C2(){() → self::X /* = core::int */} as{Unchecked} core::int); } constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.expect index 9075d7c809b..b9defbc9589 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.expect @@ -10,27 +10,27 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|_(dynamic obj) → self::X { - lowered final self::X #this = obj; +static inline-class-member method X|_(dynamic obj) → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = obj; return #this; } -static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X +static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X /* = core::int */ return self::X|_(obj); -static inline-class-member method X|() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|named() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void { - core::print(#C1(){() → self::X} as{Unchecked} core::int); - core::print(#C2(){() → self::X} as{Unchecked} core::int); + core::print(#C1(){() → self::X /* = core::int */} as{Unchecked} core::int); + core::print(#C2(){() → self::X /* = core::int */} as{Unchecked} core::int); } constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.modular.expect index 9075d7c809b..b9defbc9589 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.modular.expect @@ -10,27 +10,27 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|_(dynamic obj) → self::X { - lowered final self::X #this = obj; +static inline-class-member method X|_(dynamic obj) → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = obj; return #this; } -static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X +static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X /* = core::int */ return self::X|_(obj); -static inline-class-member method X|() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|named() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void { - core::print(#C1(){() → self::X} as{Unchecked} core::int); - core::print(#C2(){() → self::X} as{Unchecked} core::int); + core::print(#C1(){() → self::X /* = core::int */} as{Unchecked} core::int); + core::print(#C2(){() → self::X /* = core::int */} as{Unchecked} core::int); } constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.outline.expect index 07780daa172..82e1518bee6 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.outline.expect @@ -10,17 +10,17 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|_(dynamic obj) → self::X +static inline-class-member method X|_(dynamic obj) → self::X /* = core::int */ ; -static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X +static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X /* = core::int */ return self::X|_(obj); -static inline-class-member method X|() → self::X +static inline-class-member method X|() → self::X /* = core::int */ ; -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X +static inline-class-member method X|named() → self::X /* = core::int */ ; -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.transformed.expect index 9075d7c809b..b9defbc9589 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52240.dart.weak.transformed.expect @@ -10,27 +10,27 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|_(dynamic obj) → self::X { - lowered final self::X #this = obj; +static inline-class-member method X|_(dynamic obj) → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = obj; return #this; } -static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X +static inline-class-member method X|_#_#tearOff(dynamic obj) → self::X /* = core::int */ return self::X|_(obj); -static inline-class-member method X|() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|named() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void { - core::print(#C1(){() → self::X} as{Unchecked} core::int); - core::print(#C2(){() → self::X} as{Unchecked} core::int); + core::print(#C1(){() → self::X /* = core::int */} as{Unchecked} core::int); + core::print(#C2(){() → self::X /* = core::int */} as{Unchecked} core::int); } constants { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.strong.expect index 9b10b668208..c012eb634bb 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.strong.expect @@ -14,21 +14,21 @@ extension type Id(core::int id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(dynamic id) → self::Id { - lowered final self::Id #this = id; +static inline-class-member method Id|(dynamic id) → self::Id /* = core::int */ { + lowered final self::Id /* = core::int */ #this = id; return #this; } -static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id +static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); core::print(invalid-expression "pkg/front_end/testcases/inline_class/extension_types/issue52284.dart:9:11: Error: The getter 'unresolved' isn't defined for the class 'Id'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. print(c.unresolved); // Error ^^^^^^^^^^" in c{}.unresolved); } static method main() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); self::expect(#C1, c.{core::Object::runtimeType}{core::Type}); } static method expect(dynamic expected, dynamic actual) → dynamic { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.strong.transformed.expect index 9b10b668208..c012eb634bb 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.strong.transformed.expect @@ -14,21 +14,21 @@ extension type Id(core::int id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(dynamic id) → self::Id { - lowered final self::Id #this = id; +static inline-class-member method Id|(dynamic id) → self::Id /* = core::int */ { + lowered final self::Id /* = core::int */ #this = id; return #this; } -static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id +static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); core::print(invalid-expression "pkg/front_end/testcases/inline_class/extension_types/issue52284.dart:9:11: Error: The getter 'unresolved' isn't defined for the class 'Id'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. print(c.unresolved); // Error ^^^^^^^^^^" in c{}.unresolved); } static method main() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); self::expect(#C1, c.{core::Object::runtimeType}{core::Type}); } static method expect(dynamic expected, dynamic actual) → dynamic { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.expect index 820bdbb4085..1b1a25be196 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.expect @@ -14,21 +14,21 @@ extension type Id(core::int id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(dynamic id) → self::Id { - lowered final self::Id #this = id; +static inline-class-member method Id|(dynamic id) → self::Id /* = core::int */ { + lowered final self::Id /* = core::int */ #this = id; return #this; } -static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id +static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); core::print(invalid-expression "pkg/front_end/testcases/inline_class/extension_types/issue52284.dart:9:11: Error: The getter 'unresolved' isn't defined for the class 'Id'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. print(c.unresolved); // Error ^^^^^^^^^^" in c{}.unresolved); } static method main() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); self::expect(#C1, c.{core::Object::runtimeType}{core::Type}); } static method expect(dynamic expected, dynamic actual) → dynamic { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.modular.expect index 820bdbb4085..1b1a25be196 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.modular.expect @@ -14,21 +14,21 @@ extension type Id(core::int id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(dynamic id) → self::Id { - lowered final self::Id #this = id; +static inline-class-member method Id|(dynamic id) → self::Id /* = core::int */ { + lowered final self::Id /* = core::int */ #this = id; return #this; } -static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id +static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); core::print(invalid-expression "pkg/front_end/testcases/inline_class/extension_types/issue52284.dart:9:11: Error: The getter 'unresolved' isn't defined for the class 'Id'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. print(c.unresolved); // Error ^^^^^^^^^^" in c{}.unresolved); } static method main() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); self::expect(#C1, c.{core::Object::runtimeType}{core::Type}); } static method expect(dynamic expected, dynamic actual) → dynamic { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.outline.expect index 05b91400ee8..d62cbf2038b 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.outline.expect @@ -6,9 +6,9 @@ extension type Id(core::int id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(dynamic id) → self::Id +static inline-class-member method Id|(dynamic id) → self::Id /* = core::int */ ; -static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id +static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.transformed.expect index 820bdbb4085..1b1a25be196 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52284.dart.weak.transformed.expect @@ -14,21 +14,21 @@ extension type Id(core::int id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(dynamic id) → self::Id { - lowered final self::Id #this = id; +static inline-class-member method Id|(dynamic id) → self::Id /* = core::int */ { + lowered final self::Id /* = core::int */ #this = id; return #this; } -static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id +static inline-class-member method Id|_#new#tearOff(dynamic id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); core::print(invalid-expression "pkg/front_end/testcases/inline_class/extension_types/issue52284.dart:9:11: Error: The getter 'unresolved' isn't defined for the class 'Id'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. print(c.unresolved); // Error ^^^^^^^^^^" in c{}.unresolved); } static method main() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); self::expect(#C1, c.{core::Object::runtimeType}{core::Type}); } static method expect(dynamic expected, dynamic actual) → dynamic { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.strong.expect index 44ff176e16e..6fce022f160 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.strong.expect @@ -8,17 +8,17 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(dynamic id) → self::IC1 { - lowered final self::IC1 #this = id; +static inline-class-member method IC1|(dynamic id) → self::IC1 /* = core::int */ { + lowered final self::IC1 /* = core::int */ #this = id; return #this; } -static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic { - self::IC1 ic1 = self::IC1|(1); + self::IC1 /* = core::int */ ic1 = self::IC1|(1); core::print(ic1 as{Unchecked} core::int); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.strong.transformed.expect index 44ff176e16e..6fce022f160 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.strong.transformed.expect @@ -8,17 +8,17 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(dynamic id) → self::IC1 { - lowered final self::IC1 #this = id; +static inline-class-member method IC1|(dynamic id) → self::IC1 /* = core::int */ { + lowered final self::IC1 /* = core::int */ #this = id; return #this; } -static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic { - self::IC1 ic1 = self::IC1|(1); + self::IC1 /* = core::int */ ic1 = self::IC1|(1); core::print(ic1 as{Unchecked} core::int); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.expect index 44ff176e16e..6fce022f160 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.expect @@ -8,17 +8,17 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(dynamic id) → self::IC1 { - lowered final self::IC1 #this = id; +static inline-class-member method IC1|(dynamic id) → self::IC1 /* = core::int */ { + lowered final self::IC1 /* = core::int */ #this = id; return #this; } -static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic { - self::IC1 ic1 = self::IC1|(1); + self::IC1 /* = core::int */ ic1 = self::IC1|(1); core::print(ic1 as{Unchecked} core::int); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.modular.expect index 44ff176e16e..6fce022f160 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.modular.expect @@ -8,17 +8,17 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(dynamic id) → self::IC1 { - lowered final self::IC1 #this = id; +static inline-class-member method IC1|(dynamic id) → self::IC1 /* = core::int */ { + lowered final self::IC1 /* = core::int */ #this = id; return #this; } -static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic { - self::IC1 ic1 = self::IC1|(1); + self::IC1 /* = core::int */ ic1 = self::IC1|(1); core::print(ic1 as{Unchecked} core::int); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.outline.expect index 8b89304cba5..e831b519095 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.outline.expect @@ -8,13 +8,13 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(dynamic id) → self::IC1 +static inline-class-member method IC1|(dynamic id) → self::IC1 /* = core::int */ ; -static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.transformed.expect index 44ff176e16e..6fce022f160 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52525.dart.weak.transformed.expect @@ -8,17 +8,17 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(dynamic id) → self::IC1 { - lowered final self::IC1 #this = id; +static inline-class-member method IC1|(dynamic id) → self::IC1 /* = core::int */ { + lowered final self::IC1 /* = core::int */ #this = id; return #this; } -static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(dynamic id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic { - self::IC1 ic1 = self::IC1|(1); + self::IC1 /* = core::int */ ic1 = self::IC1|(1); core::print(ic1 as{Unchecked} core::int); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.strong.expect index 5198fa70e0b..2c461c570e3 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.strong.expect @@ -15,23 +15,23 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(dynamic i) → self::FooBar { - lowered final self::FooBar #this = i; +static inline-class-member method FooBar|(dynamic i) → self::FooBar /* = core::int */ { + lowered final self::FooBar /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(dynamic i) → self::FooBaz { - lowered final self::FooBaz #this = i; +static inline-class-member method FooBaz|(dynamic i) → self::FooBaz /* = core::int */ { + lowered final self::FooBaz /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void { - final self::FooBar a = self::FooBar|(0); + final self::FooBar /* = core::int */ a = self::FooBar|(0); #L1: { - final synthesized self::FooBar #0#0 = a; + final synthesized self::FooBar /* = core::int */ #0#0 = a; { final hoisted core::int a; if(let final dynamic #t1 = a = #0#0 as{Unchecked} core::int in true) { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.strong.transformed.expect index db3ad03a9fc..ba73a59b67f 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.strong.transformed.expect @@ -15,23 +15,23 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(dynamic i) → self::FooBar { - lowered final self::FooBar #this = i; +static inline-class-member method FooBar|(dynamic i) → self::FooBar /* = core::int */ { + lowered final self::FooBar /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(dynamic i) → self::FooBaz { - lowered final self::FooBaz #this = i; +static inline-class-member method FooBaz|(dynamic i) → self::FooBaz /* = core::int */ { + lowered final self::FooBaz /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void { - final self::FooBar a = self::FooBar|(0); + final self::FooBar /* = core::int */ a = self::FooBar|(0); #L1: { - final synthesized self::FooBar #0#0 = a; + final synthesized self::FooBar /* = core::int */ #0#0 = a; { final hoisted core::int a; if(let final core::int #t1 = a = #0#0 as{Unchecked} core::int in true) { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.expect index 5198fa70e0b..2c461c570e3 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.expect @@ -15,23 +15,23 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(dynamic i) → self::FooBar { - lowered final self::FooBar #this = i; +static inline-class-member method FooBar|(dynamic i) → self::FooBar /* = core::int */ { + lowered final self::FooBar /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(dynamic i) → self::FooBaz { - lowered final self::FooBaz #this = i; +static inline-class-member method FooBaz|(dynamic i) → self::FooBaz /* = core::int */ { + lowered final self::FooBaz /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void { - final self::FooBar a = self::FooBar|(0); + final self::FooBar /* = core::int */ a = self::FooBar|(0); #L1: { - final synthesized self::FooBar #0#0 = a; + final synthesized self::FooBar /* = core::int */ #0#0 = a; { final hoisted core::int a; if(let final dynamic #t1 = a = #0#0 as{Unchecked} core::int in true) { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.modular.expect index 5198fa70e0b..2c461c570e3 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.modular.expect @@ -15,23 +15,23 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(dynamic i) → self::FooBar { - lowered final self::FooBar #this = i; +static inline-class-member method FooBar|(dynamic i) → self::FooBar /* = core::int */ { + lowered final self::FooBar /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(dynamic i) → self::FooBaz { - lowered final self::FooBaz #this = i; +static inline-class-member method FooBaz|(dynamic i) → self::FooBaz /* = core::int */ { + lowered final self::FooBaz /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void { - final self::FooBar a = self::FooBar|(0); + final self::FooBar /* = core::int */ a = self::FooBar|(0); #L1: { - final synthesized self::FooBar #0#0 = a; + final synthesized self::FooBar /* = core::int */ #0#0 = a; { final hoisted core::int a; if(let final dynamic #t1 = a = #0#0 as{Unchecked} core::int in true) { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.outline.expect index 3baba1808f3..1ccf2a1ee98 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.outline.expect @@ -14,13 +14,13 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(dynamic i) → self::FooBar +static inline-class-member method FooBar|(dynamic i) → self::FooBar /* = core::int */ ; -static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(dynamic i) → self::FooBaz +static inline-class-member method FooBaz|(dynamic i) → self::FooBaz /* = core::int */ ; -static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.transformed.expect index db3ad03a9fc..ba73a59b67f 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue52667.dart.weak.transformed.expect @@ -15,23 +15,23 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(dynamic i) → self::FooBar { - lowered final self::FooBar #this = i; +static inline-class-member method FooBar|(dynamic i) → self::FooBar /* = core::int */ { + lowered final self::FooBar /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(dynamic i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(dynamic i) → self::FooBaz { - lowered final self::FooBaz #this = i; +static inline-class-member method FooBaz|(dynamic i) → self::FooBaz /* = core::int */ { + lowered final self::FooBaz /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(dynamic i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void { - final self::FooBar a = self::FooBar|(0); + final self::FooBar /* = core::int */ a = self::FooBar|(0); #L1: { - final synthesized self::FooBar #0#0 = a; + final synthesized self::FooBar /* = core::int */ #0#0 = a; { final hoisted core::int a; if(let final core::int #t1 = a = #0#0 as{Unchecked} core::int in true) { diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.strong.expect index d01f4feceed..e7025bd8c3d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.strong.expect @@ -21,16 +21,16 @@ library; import self as self; import "dart:core" as core; -extension type V = self::V>(T id) { +extension type V /* = T */ = self::V /* = dynamic */>(T id) { constructor • = self::V|; tearoff • = self::V|_#new#tearOff; } -static inline-class-member method V| = dynamic>(dynamic id) → self::V { - lowered final self::V #this = id; +static inline-class-member method V| /* = self::V|::T */ = dynamic>(dynamic id) → self::V /* = self::V|::T */ { + lowered final self::V /* = self::V|::T */ #this = id; return #this; } -static inline-class-member method V|_#new#tearOff = dynamic>(dynamic id) → self::V +static inline-class-member method V|_#new#tearOff /* = self::V|_#new#tearOff::T */ = dynamic>(dynamic id) → self::V /* = self::V|_#new#tearOff::T */ return self::V|(id); -static method test(self::V> v) → dynamic { - core::List>> l = >>[v]; +static method test(self::V /* = dynamic */> /* = dynamic */ v) → dynamic { + core::List /* = dynamic */> /* = dynamic */> l = /* = dynamic */> /* = dynamic */>[v]; } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.strong.transformed.expect index 759e27ab49c..358ff346d35 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.strong.transformed.expect @@ -21,16 +21,16 @@ library; import self as self; import "dart:core" as core; -extension type V = self::V>(T id) { +extension type V /* = T */ = self::V /* = dynamic */>(T id) { constructor • = self::V|; tearoff • = self::V|_#new#tearOff; } -static inline-class-member method V| = dynamic>(dynamic id) → self::V { - lowered final self::V #this = id; +static inline-class-member method V| /* = self::V|::T */ = dynamic>(dynamic id) → self::V /* = self::V|::T */ { + lowered final self::V /* = self::V|::T */ #this = id; return #this; } -static inline-class-member method V|_#new#tearOff = dynamic>(dynamic id) → self::V +static inline-class-member method V|_#new#tearOff /* = self::V|_#new#tearOff::T */ = dynamic>(dynamic id) → self::V /* = self::V|_#new#tearOff::T */ return self::V|(id); -static method test(self::V> v) → dynamic { - core::List>> l = core::_GrowableList::_literal1>>(v); +static method test(self::V /* = dynamic */> /* = dynamic */ v) → dynamic { + core::List /* = dynamic */> /* = dynamic */> l = core::_GrowableList::_literal1 /* = dynamic */> /* = dynamic */>(v); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.expect index d01f4feceed..e7025bd8c3d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.expect @@ -21,16 +21,16 @@ library; import self as self; import "dart:core" as core; -extension type V = self::V>(T id) { +extension type V /* = T */ = self::V /* = dynamic */>(T id) { constructor • = self::V|; tearoff • = self::V|_#new#tearOff; } -static inline-class-member method V| = dynamic>(dynamic id) → self::V { - lowered final self::V #this = id; +static inline-class-member method V| /* = self::V|::T */ = dynamic>(dynamic id) → self::V /* = self::V|::T */ { + lowered final self::V /* = self::V|::T */ #this = id; return #this; } -static inline-class-member method V|_#new#tearOff = dynamic>(dynamic id) → self::V +static inline-class-member method V|_#new#tearOff /* = self::V|_#new#tearOff::T */ = dynamic>(dynamic id) → self::V /* = self::V|_#new#tearOff::T */ return self::V|(id); -static method test(self::V> v) → dynamic { - core::List>> l = >>[v]; +static method test(self::V /* = dynamic */> /* = dynamic */ v) → dynamic { + core::List /* = dynamic */> /* = dynamic */> l = /* = dynamic */> /* = dynamic */>[v]; } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.modular.expect index d01f4feceed..e7025bd8c3d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.modular.expect @@ -21,16 +21,16 @@ library; import self as self; import "dart:core" as core; -extension type V = self::V>(T id) { +extension type V /* = T */ = self::V /* = dynamic */>(T id) { constructor • = self::V|; tearoff • = self::V|_#new#tearOff; } -static inline-class-member method V| = dynamic>(dynamic id) → self::V { - lowered final self::V #this = id; +static inline-class-member method V| /* = self::V|::T */ = dynamic>(dynamic id) → self::V /* = self::V|::T */ { + lowered final self::V /* = self::V|::T */ #this = id; return #this; } -static inline-class-member method V|_#new#tearOff = dynamic>(dynamic id) → self::V +static inline-class-member method V|_#new#tearOff /* = self::V|_#new#tearOff::T */ = dynamic>(dynamic id) → self::V /* = self::V|_#new#tearOff::T */ return self::V|(id); -static method test(self::V> v) → dynamic { - core::List>> l = >>[v]; +static method test(self::V /* = dynamic */> /* = dynamic */ v) → dynamic { + core::List /* = dynamic */> /* = dynamic */> l = /* = dynamic */> /* = dynamic */>[v]; } diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.outline.expect index 54cce6d8d9a..1758c31f14a 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.outline.expect @@ -12,13 +12,13 @@ library; // import self as self; -extension type V = self::V>(T id) { +extension type V /* = T */ = self::V /* = dynamic */>(T id) { constructor • = self::V|; tearoff • = self::V|_#new#tearOff; } -static inline-class-member method V| = dynamic>(dynamic id) → self::V +static inline-class-member method V| /* = self::V|::T */ = dynamic>(dynamic id) → self::V /* = self::V|::T */ ; -static inline-class-member method V|_#new#tearOff = dynamic>(dynamic id) → self::V +static inline-class-member method V|_#new#tearOff /* = self::V|_#new#tearOff::T */ = dynamic>(dynamic id) → self::V /* = self::V|_#new#tearOff::T */ return self::V|(id); -static method test(self::V> v) → dynamic +static method test(self::V /* = dynamic */> /* = dynamic */ v) → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.transformed.expect index 759e27ab49c..358ff346d35 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/issue53123.dart.weak.transformed.expect @@ -21,16 +21,16 @@ library; import self as self; import "dart:core" as core; -extension type V = self::V>(T id) { +extension type V /* = T */ = self::V /* = dynamic */>(T id) { constructor • = self::V|; tearoff • = self::V|_#new#tearOff; } -static inline-class-member method V| = dynamic>(dynamic id) → self::V { - lowered final self::V #this = id; +static inline-class-member method V| /* = self::V|::T */ = dynamic>(dynamic id) → self::V /* = self::V|::T */ { + lowered final self::V /* = self::V|::T */ #this = id; return #this; } -static inline-class-member method V|_#new#tearOff = dynamic>(dynamic id) → self::V +static inline-class-member method V|_#new#tearOff /* = self::V|_#new#tearOff::T */ = dynamic>(dynamic id) → self::V /* = self::V|_#new#tearOff::T */ return self::V|(id); -static method test(self::V> v) → dynamic { - core::List>> l = core::_GrowableList::_literal1>>(v); +static method test(self::V /* = dynamic */> /* = dynamic */ v) → dynamic { + core::List /* = dynamic */> /* = dynamic */> l = core::_GrowableList::_literal1 /* = dynamic */> /* = dynamic */>(v); } diff --git a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.strong.expect index 3e22338472d..e905037bc71 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.strong.expect @@ -15,17 +15,17 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|_(dynamic value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|_(dynamic value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#_#tearOff(dynamic value) → self::A +static inline-class-member method A|_#_#tearOff(dynamic value) → self::A /* = core::int */ return self::A|_(value); -static inline-class-member method A|name1(core::int value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void return invalid-expression "pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart:9:20: Error: Member not found: 'A.name2'. diff --git a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.strong.transformed.expect index 3e22338472d..e905037bc71 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.strong.transformed.expect @@ -15,17 +15,17 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|_(dynamic value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|_(dynamic value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#_#tearOff(dynamic value) → self::A +static inline-class-member method A|_#_#tearOff(dynamic value) → self::A /* = core::int */ return self::A|_(value); -static inline-class-member method A|name1(core::int value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void return invalid-expression "pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart:9:20: Error: Member not found: 'A.name2'. diff --git a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.expect index 3e22338472d..e905037bc71 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.expect @@ -15,17 +15,17 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|_(dynamic value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|_(dynamic value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#_#tearOff(dynamic value) → self::A +static inline-class-member method A|_#_#tearOff(dynamic value) → self::A /* = core::int */ return self::A|_(value); -static inline-class-member method A|name1(core::int value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void return invalid-expression "pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart:9:20: Error: Member not found: 'A.name2'. diff --git a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.modular.expect index 3e22338472d..e905037bc71 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.modular.expect @@ -15,17 +15,17 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|_(dynamic value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|_(dynamic value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#_#tearOff(dynamic value) → self::A +static inline-class-member method A|_#_#tearOff(dynamic value) → self::A /* = core::int */ return self::A|_(value); -static inline-class-member method A|name1(core::int value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void return invalid-expression "pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart:9:20: Error: Member not found: 'A.name2'. diff --git a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.outline.expect index 295adb9dce9..f9c5fe2f14d 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.outline.expect @@ -8,13 +8,13 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|_(dynamic value) → self::A +static inline-class-member method A|_(dynamic value) → self::A /* = core::int */ ; -static inline-class-member method A|_#_#tearOff(dynamic value) → self::A +static inline-class-member method A|_#_#tearOff(dynamic value) → self::A /* = core::int */ return self::A|_(value); -static inline-class-member method A|name1(core::int value) → self::A +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ ; -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.transformed.expect index 3e22338472d..e905037bc71 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart.weak.transformed.expect @@ -15,17 +15,17 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|_(dynamic value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|_(dynamic value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#_#tearOff(dynamic value) → self::A +static inline-class-member method A|_#_#tearOff(dynamic value) → self::A /* = core::int */ return self::A|_(value); -static inline-class-member method A|name1(core::int value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void return invalid-expression "pkg/front_end/testcases/inline_class/extension_types/member_not_found.dart:9:20: Error: Member not found: 'A.name2'. diff --git a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.strong.expect index a1f3a151450..91994442759 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.strong.expect @@ -60,13 +60,13 @@ extension type InlineClass(core::int it) { static extension-member method _extension#0|get#setter(lowered final core::Object #this) → core::int return 42; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void {} -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic { core::int a = self::InlineClass|+(#this, 2); core::int b = self::InlineClass|unary-(#this); core::int c = self::InlineClass|[](#this, 2); @@ -109,35 +109,35 @@ Try correcting the name to the name of an existing setter, or defining a setter core::int n1 = self::InlineClass|call(#this); core::int n2 = self::InlineClass|call(#this); } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int return 42; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int return 87; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int return 123; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void {} -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void {} +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void {} -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void {} +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% return t; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int return 321; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic { +static method test(self::InlineClass /* = core::int */ ic) → dynamic { core::int a = self::InlineClass|+(ic, 2); core::int b = self::InlineClass|unary-(ic); core::int c = self::InlineClass|[](ic, 2); - core::int d = let final self::InlineClass #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; + core::int d = let final self::InlineClass /* = core::int */ #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; core::int e = self::InlineClass|get#getter(ic); () → core::int f = self::InlineClass|get#method(ic); core::int g = let final core::int #t12 = 42 in let final void #t13 = self::InlineClass|set#setter(ic, #t12) in #t12; diff --git a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.strong.transformed.expect index 95ec6f20f7b..75dc287cdbe 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.strong.transformed.expect @@ -60,13 +60,13 @@ extension type InlineClass(core::int it) { static extension-member method _extension#0|get#setter(lowered final core::Object #this) → core::int return 42; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void {} -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic { core::int a = self::InlineClass|+(#this, 2); core::int b = self::InlineClass|unary-(#this); core::int c = self::InlineClass|[](#this, 2); @@ -109,35 +109,35 @@ Try correcting the name to the name of an existing setter, or defining a setter core::int n1 = self::InlineClass|call(#this); core::int n2 = self::InlineClass|call(#this); } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int return 42; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int return 87; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int return 123; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void {} -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void {} +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void {} -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void {} +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% return t; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int return 321; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic { +static method test(self::InlineClass /* = core::int */ ic) → dynamic { core::int a = self::InlineClass|+(ic, 2); core::int b = self::InlineClass|unary-(ic); core::int c = self::InlineClass|[](ic, 2); - core::int d = let final self::InlineClass #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; + core::int d = let final self::InlineClass /* = core::int */ #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; core::int e = self::InlineClass|get#getter(ic); () → core::int f = self::InlineClass|get#method(ic); core::int g = let final core::int #t12 = 42 in let final void #t13 = self::InlineClass|set#setter(ic, #t12) in #t12; diff --git a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.expect index a1f3a151450..91994442759 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.expect @@ -60,13 +60,13 @@ extension type InlineClass(core::int it) { static extension-member method _extension#0|get#setter(lowered final core::Object #this) → core::int return 42; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void {} -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic { core::int a = self::InlineClass|+(#this, 2); core::int b = self::InlineClass|unary-(#this); core::int c = self::InlineClass|[](#this, 2); @@ -109,35 +109,35 @@ Try correcting the name to the name of an existing setter, or defining a setter core::int n1 = self::InlineClass|call(#this); core::int n2 = self::InlineClass|call(#this); } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int return 42; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int return 87; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int return 123; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void {} -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void {} +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void {} -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void {} +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% return t; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int return 321; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic { +static method test(self::InlineClass /* = core::int */ ic) → dynamic { core::int a = self::InlineClass|+(ic, 2); core::int b = self::InlineClass|unary-(ic); core::int c = self::InlineClass|[](ic, 2); - core::int d = let final self::InlineClass #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; + core::int d = let final self::InlineClass /* = core::int */ #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; core::int e = self::InlineClass|get#getter(ic); () → core::int f = self::InlineClass|get#method(ic); core::int g = let final core::int #t12 = 42 in let final void #t13 = self::InlineClass|set#setter(ic, #t12) in #t12; diff --git a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.modular.expect index a1f3a151450..91994442759 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.modular.expect @@ -60,13 +60,13 @@ extension type InlineClass(core::int it) { static extension-member method _extension#0|get#setter(lowered final core::Object #this) → core::int return 42; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void {} -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic { core::int a = self::InlineClass|+(#this, 2); core::int b = self::InlineClass|unary-(#this); core::int c = self::InlineClass|[](#this, 2); @@ -109,35 +109,35 @@ Try correcting the name to the name of an existing setter, or defining a setter core::int n1 = self::InlineClass|call(#this); core::int n2 = self::InlineClass|call(#this); } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int return 42; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int return 87; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int return 123; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void {} -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void {} +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void {} -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void {} +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% return t; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int return 321; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic { +static method test(self::InlineClass /* = core::int */ ic) → dynamic { core::int a = self::InlineClass|+(ic, 2); core::int b = self::InlineClass|unary-(ic); core::int c = self::InlineClass|[](ic, 2); - core::int d = let final self::InlineClass #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; + core::int d = let final self::InlineClass /* = core::int */ #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; core::int e = self::InlineClass|get#getter(ic); () → core::int f = self::InlineClass|get#method(ic); core::int g = let final core::int #t12 = 42 in let final void #t13 = self::InlineClass|set#setter(ic, #t12) in #t12; diff --git a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.outline.expect index 596a49f9d20..7c841cfd192 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.outline.expect @@ -28,37 +28,37 @@ static extension-member method _extension#0|get#setter(lowered final core::Objec ; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void ; -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ ; -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic ; -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int ; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int ; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int ; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void ; -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int ; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int ; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void ; -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% ; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int ; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic +static method test(self::InlineClass /* = core::int */ ic) → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.transformed.expect index 95ec6f20f7b..75dc287cdbe 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/method_access.dart.weak.transformed.expect @@ -60,13 +60,13 @@ extension type InlineClass(core::int it) { static extension-member method _extension#0|get#setter(lowered final core::Object #this) → core::int return 42; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void {} -static inline-class-member method InlineClass|(dynamic it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(dynamic it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic { core::int a = self::InlineClass|+(#this, 2); core::int b = self::InlineClass|unary-(#this); core::int c = self::InlineClass|[](#this, 2); @@ -109,35 +109,35 @@ Try correcting the name to the name of an existing setter, or defining a setter core::int n1 = self::InlineClass|call(#this); core::int n2 = self::InlineClass|call(#this); } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int return 42; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int return 87; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int return 123; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void {} -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void {} +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void {} -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void {} +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% return t; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int return 321; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic { +static method test(self::InlineClass /* = core::int */ ic) → dynamic { core::int a = self::InlineClass|+(ic, 2); core::int b = self::InlineClass|unary-(ic); core::int c = self::InlineClass|[](ic, 2); - core::int d = let final self::InlineClass #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; + core::int d = let final self::InlineClass /* = core::int */ #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; core::int e = self::InlineClass|get#getter(ic); () → core::int f = self::InlineClass|get#method(ic); core::int g = let final core::int #t12 = 42 in let final void #t13 = self::InlineClass|set#setter(ic, #t12) in #t12; diff --git a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.strong.expect index 756e00c9f41..4595a816d05 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.strong.expect @@ -97,75 +97,75 @@ extension type ET_CovariantAlias2(((T%) → v constructor • = self::ET_CovariantAlias2|; tearoff • = self::ET_CovariantAlias2|_#new#tearOff; } -static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant { - lowered final self::ET_Contravariant #this = f; +static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|::T%) → void */ { + lowered final self::ET_Contravariant /* = (self::ET_Contravariant|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant +static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|_#new#tearOff::T%) → void */ return self::ET_Contravariant|(f); -static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant { - lowered final self::ET_Invariant #this = f; +static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant /* = () → void */ { + lowered final self::ET_Invariant /* = () → void */ #this = f; return #this; } -static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant +static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant /* = () → void */ return self::ET_Invariant|(f); -static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant { - lowered final self::ET_Covariant #this = f; +static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|::T% */ { + lowered final self::ET_Covariant /* = () → self::ET_Covariant|::T% */ #this = f; return #this; } -static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant +static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|_#new#tearOff::T% */ return self::ET_Covariant|(f); -static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant { - lowered final self::ET_Bivariant #this = f; +static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|::T%) → self::ET_Bivariant|::T% */ { + lowered final self::ET_Bivariant /* = (self::ET_Bivariant|::T%) → self::ET_Bivariant|::T% */ #this = f; return #this; } -static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant +static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|_#new#tearOff::T%) → self::ET_Bivariant|_#new#tearOff::T% */ return self::ET_Bivariant|(f); -static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias { - lowered final self::ET_ContravariantAlias #this = f; +static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|::T%) → void */ { + lowered final self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias +static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias|(f); -static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias { - lowered final self::ET_InvariantAlias #this = f; +static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias /* = () → void */ { + lowered final self::ET_InvariantAlias /* = () → void */ #this = f; return #this; } -static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias +static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias /* = () → void */ return self::ET_InvariantAlias|(f); -static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias { - lowered final self::ET_CovariantAlias #this = f; +static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|::T% */ { + lowered final self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|::T% */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias +static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|_#new#tearOff::T% */ return self::ET_CovariantAlias|(f); -static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias { - lowered final self::ET_BivariantAlias #this = f; +static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|::T%) → self::ET_BivariantAlias|::T% */ { + lowered final self::ET_BivariantAlias /* = (self::ET_BivariantAlias|::T%) → self::ET_BivariantAlias|::T% */ #this = f; return #this; } -static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias +static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|_#new#tearOff::T%) → self::ET_BivariantAlias|_#new#tearOff::T% */ return self::ET_BivariantAlias|(f); -static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 { - lowered final self::ET_ContravariantAlias1 #this = f; +static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|::T%) → void */ { + lowered final self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 +static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias1|(f); -static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 { - lowered final self::ET_ContravariantAlias2 #this = f; +static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|::T%) → void */ { + lowered final self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 +static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias2|(f); -static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 { - lowered final self::ET_CovariantAlias1 #this = f; +static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|::T% */ { + lowered final self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|::T% */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 +static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|_#new#tearOff::T% */ return self::ET_CovariantAlias1|(f); -static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 { - lowered final self::ET_CovariantAlias2 #this = f; +static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|::T%) → void) → void */ { + lowered final self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|::T%) → void) → void */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 +static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|_#new#tearOff::T%) → void) → void */ return self::ET_CovariantAlias2|(f); diff --git a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.strong.transformed.expect index 756e00c9f41..4595a816d05 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.strong.transformed.expect @@ -97,75 +97,75 @@ extension type ET_CovariantAlias2(((T%) → v constructor • = self::ET_CovariantAlias2|; tearoff • = self::ET_CovariantAlias2|_#new#tearOff; } -static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant { - lowered final self::ET_Contravariant #this = f; +static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|::T%) → void */ { + lowered final self::ET_Contravariant /* = (self::ET_Contravariant|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant +static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|_#new#tearOff::T%) → void */ return self::ET_Contravariant|(f); -static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant { - lowered final self::ET_Invariant #this = f; +static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant /* = () → void */ { + lowered final self::ET_Invariant /* = () → void */ #this = f; return #this; } -static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant +static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant /* = () → void */ return self::ET_Invariant|(f); -static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant { - lowered final self::ET_Covariant #this = f; +static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|::T% */ { + lowered final self::ET_Covariant /* = () → self::ET_Covariant|::T% */ #this = f; return #this; } -static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant +static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|_#new#tearOff::T% */ return self::ET_Covariant|(f); -static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant { - lowered final self::ET_Bivariant #this = f; +static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|::T%) → self::ET_Bivariant|::T% */ { + lowered final self::ET_Bivariant /* = (self::ET_Bivariant|::T%) → self::ET_Bivariant|::T% */ #this = f; return #this; } -static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant +static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|_#new#tearOff::T%) → self::ET_Bivariant|_#new#tearOff::T% */ return self::ET_Bivariant|(f); -static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias { - lowered final self::ET_ContravariantAlias #this = f; +static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|::T%) → void */ { + lowered final self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias +static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias|(f); -static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias { - lowered final self::ET_InvariantAlias #this = f; +static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias /* = () → void */ { + lowered final self::ET_InvariantAlias /* = () → void */ #this = f; return #this; } -static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias +static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias /* = () → void */ return self::ET_InvariantAlias|(f); -static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias { - lowered final self::ET_CovariantAlias #this = f; +static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|::T% */ { + lowered final self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|::T% */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias +static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|_#new#tearOff::T% */ return self::ET_CovariantAlias|(f); -static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias { - lowered final self::ET_BivariantAlias #this = f; +static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|::T%) → self::ET_BivariantAlias|::T% */ { + lowered final self::ET_BivariantAlias /* = (self::ET_BivariantAlias|::T%) → self::ET_BivariantAlias|::T% */ #this = f; return #this; } -static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias +static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|_#new#tearOff::T%) → self::ET_BivariantAlias|_#new#tearOff::T% */ return self::ET_BivariantAlias|(f); -static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 { - lowered final self::ET_ContravariantAlias1 #this = f; +static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|::T%) → void */ { + lowered final self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 +static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias1|(f); -static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 { - lowered final self::ET_ContravariantAlias2 #this = f; +static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|::T%) → void */ { + lowered final self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 +static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias2|(f); -static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 { - lowered final self::ET_CovariantAlias1 #this = f; +static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|::T% */ { + lowered final self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|::T% */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 +static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|_#new#tearOff::T% */ return self::ET_CovariantAlias1|(f); -static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 { - lowered final self::ET_CovariantAlias2 #this = f; +static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|::T%) → void) → void */ { + lowered final self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|::T%) → void) → void */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 +static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|_#new#tearOff::T%) → void) → void */ return self::ET_CovariantAlias2|(f); diff --git a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.expect index 756e00c9f41..4595a816d05 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.expect @@ -97,75 +97,75 @@ extension type ET_CovariantAlias2(((T%) → v constructor • = self::ET_CovariantAlias2|; tearoff • = self::ET_CovariantAlias2|_#new#tearOff; } -static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant { - lowered final self::ET_Contravariant #this = f; +static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|::T%) → void */ { + lowered final self::ET_Contravariant /* = (self::ET_Contravariant|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant +static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|_#new#tearOff::T%) → void */ return self::ET_Contravariant|(f); -static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant { - lowered final self::ET_Invariant #this = f; +static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant /* = () → void */ { + lowered final self::ET_Invariant /* = () → void */ #this = f; return #this; } -static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant +static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant /* = () → void */ return self::ET_Invariant|(f); -static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant { - lowered final self::ET_Covariant #this = f; +static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|::T% */ { + lowered final self::ET_Covariant /* = () → self::ET_Covariant|::T% */ #this = f; return #this; } -static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant +static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|_#new#tearOff::T% */ return self::ET_Covariant|(f); -static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant { - lowered final self::ET_Bivariant #this = f; +static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|::T%) → self::ET_Bivariant|::T% */ { + lowered final self::ET_Bivariant /* = (self::ET_Bivariant|::T%) → self::ET_Bivariant|::T% */ #this = f; return #this; } -static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant +static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|_#new#tearOff::T%) → self::ET_Bivariant|_#new#tearOff::T% */ return self::ET_Bivariant|(f); -static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias { - lowered final self::ET_ContravariantAlias #this = f; +static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|::T%) → void */ { + lowered final self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias +static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias|(f); -static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias { - lowered final self::ET_InvariantAlias #this = f; +static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias /* = () → void */ { + lowered final self::ET_InvariantAlias /* = () → void */ #this = f; return #this; } -static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias +static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias /* = () → void */ return self::ET_InvariantAlias|(f); -static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias { - lowered final self::ET_CovariantAlias #this = f; +static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|::T% */ { + lowered final self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|::T% */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias +static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|_#new#tearOff::T% */ return self::ET_CovariantAlias|(f); -static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias { - lowered final self::ET_BivariantAlias #this = f; +static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|::T%) → self::ET_BivariantAlias|::T% */ { + lowered final self::ET_BivariantAlias /* = (self::ET_BivariantAlias|::T%) → self::ET_BivariantAlias|::T% */ #this = f; return #this; } -static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias +static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|_#new#tearOff::T%) → self::ET_BivariantAlias|_#new#tearOff::T% */ return self::ET_BivariantAlias|(f); -static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 { - lowered final self::ET_ContravariantAlias1 #this = f; +static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|::T%) → void */ { + lowered final self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 +static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias1|(f); -static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 { - lowered final self::ET_ContravariantAlias2 #this = f; +static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|::T%) → void */ { + lowered final self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 +static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias2|(f); -static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 { - lowered final self::ET_CovariantAlias1 #this = f; +static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|::T% */ { + lowered final self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|::T% */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 +static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|_#new#tearOff::T% */ return self::ET_CovariantAlias1|(f); -static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 { - lowered final self::ET_CovariantAlias2 #this = f; +static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|::T%) → void) → void */ { + lowered final self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|::T%) → void) → void */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 +static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|_#new#tearOff::T%) → void) → void */ return self::ET_CovariantAlias2|(f); diff --git a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.modular.expect index 756e00c9f41..4595a816d05 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.modular.expect @@ -97,75 +97,75 @@ extension type ET_CovariantAlias2(((T%) → v constructor • = self::ET_CovariantAlias2|; tearoff • = self::ET_CovariantAlias2|_#new#tearOff; } -static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant { - lowered final self::ET_Contravariant #this = f; +static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|::T%) → void */ { + lowered final self::ET_Contravariant /* = (self::ET_Contravariant|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant +static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|_#new#tearOff::T%) → void */ return self::ET_Contravariant|(f); -static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant { - lowered final self::ET_Invariant #this = f; +static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant /* = () → void */ { + lowered final self::ET_Invariant /* = () → void */ #this = f; return #this; } -static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant +static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant /* = () → void */ return self::ET_Invariant|(f); -static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant { - lowered final self::ET_Covariant #this = f; +static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|::T% */ { + lowered final self::ET_Covariant /* = () → self::ET_Covariant|::T% */ #this = f; return #this; } -static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant +static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|_#new#tearOff::T% */ return self::ET_Covariant|(f); -static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant { - lowered final self::ET_Bivariant #this = f; +static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|::T%) → self::ET_Bivariant|::T% */ { + lowered final self::ET_Bivariant /* = (self::ET_Bivariant|::T%) → self::ET_Bivariant|::T% */ #this = f; return #this; } -static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant +static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|_#new#tearOff::T%) → self::ET_Bivariant|_#new#tearOff::T% */ return self::ET_Bivariant|(f); -static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias { - lowered final self::ET_ContravariantAlias #this = f; +static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|::T%) → void */ { + lowered final self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias +static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias|(f); -static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias { - lowered final self::ET_InvariantAlias #this = f; +static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias /* = () → void */ { + lowered final self::ET_InvariantAlias /* = () → void */ #this = f; return #this; } -static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias +static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias /* = () → void */ return self::ET_InvariantAlias|(f); -static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias { - lowered final self::ET_CovariantAlias #this = f; +static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|::T% */ { + lowered final self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|::T% */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias +static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|_#new#tearOff::T% */ return self::ET_CovariantAlias|(f); -static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias { - lowered final self::ET_BivariantAlias #this = f; +static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|::T%) → self::ET_BivariantAlias|::T% */ { + lowered final self::ET_BivariantAlias /* = (self::ET_BivariantAlias|::T%) → self::ET_BivariantAlias|::T% */ #this = f; return #this; } -static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias +static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|_#new#tearOff::T%) → self::ET_BivariantAlias|_#new#tearOff::T% */ return self::ET_BivariantAlias|(f); -static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 { - lowered final self::ET_ContravariantAlias1 #this = f; +static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|::T%) → void */ { + lowered final self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 +static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias1|(f); -static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 { - lowered final self::ET_ContravariantAlias2 #this = f; +static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|::T%) → void */ { + lowered final self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 +static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias2|(f); -static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 { - lowered final self::ET_CovariantAlias1 #this = f; +static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|::T% */ { + lowered final self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|::T% */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 +static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|_#new#tearOff::T% */ return self::ET_CovariantAlias1|(f); -static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 { - lowered final self::ET_CovariantAlias2 #this = f; +static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|::T%) → void) → void */ { + lowered final self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|::T%) → void) → void */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 +static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|_#new#tearOff::T%) → void) → void */ return self::ET_CovariantAlias2|(f); diff --git a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.outline.expect index d550c563dae..c997b9e4683 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.outline.expect @@ -97,51 +97,51 @@ extension type ET_CovariantAlias2(((T%) → v constructor • = self::ET_CovariantAlias2|; tearoff • = self::ET_CovariantAlias2|_#new#tearOff; } -static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant +static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|::T%) → void */ ; -static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant +static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|_#new#tearOff::T%) → void */ return self::ET_Contravariant|(f); -static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant +static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant /* = () → void */ ; -static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant +static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant /* = () → void */ return self::ET_Invariant|(f); -static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant +static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|::T% */ ; -static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant +static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|_#new#tearOff::T% */ return self::ET_Covariant|(f); -static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant +static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|::T%) → self::ET_Bivariant|::T% */ ; -static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant +static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|_#new#tearOff::T%) → self::ET_Bivariant|_#new#tearOff::T% */ return self::ET_Bivariant|(f); -static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias +static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|::T%) → void */ ; -static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias +static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias|(f); -static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias +static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias /* = () → void */ ; -static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias +static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias /* = () → void */ return self::ET_InvariantAlias|(f); -static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias +static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|::T% */ ; -static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias +static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|_#new#tearOff::T% */ return self::ET_CovariantAlias|(f); -static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias +static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|::T%) → self::ET_BivariantAlias|::T% */ ; -static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias +static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|_#new#tearOff::T%) → self::ET_BivariantAlias|_#new#tearOff::T% */ return self::ET_BivariantAlias|(f); -static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 +static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|::T%) → void */ ; -static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 +static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias1|(f); -static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 +static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|::T%) → void */ ; -static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 +static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias2|(f); -static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 +static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|::T% */ ; -static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 +static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|_#new#tearOff::T% */ return self::ET_CovariantAlias1|(f); -static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 +static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|::T%) → void) → void */ ; -static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 +static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|_#new#tearOff::T%) → void) → void */ return self::ET_CovariantAlias2|(f); diff --git a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.transformed.expect index 756e00c9f41..4595a816d05 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/non_covariant_type_parameter.dart.weak.transformed.expect @@ -97,75 +97,75 @@ extension type ET_CovariantAlias2(((T%) → v constructor • = self::ET_CovariantAlias2|; tearoff • = self::ET_CovariantAlias2|_#new#tearOff; } -static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant { - lowered final self::ET_Contravariant #this = f; +static inline-class-member method ET_Contravariant|(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|::T%) → void */ { + lowered final self::ET_Contravariant /* = (self::ET_Contravariant|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant +static inline-class-member method ET_Contravariant|_#new#tearOff(dynamic f) → self::ET_Contravariant /* = (self::ET_Contravariant|_#new#tearOff::T%) → void */ return self::ET_Contravariant|(f); -static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant { - lowered final self::ET_Invariant #this = f; +static inline-class-member method ET_Invariant|(dynamic f) → self::ET_Invariant /* = () → void */ { + lowered final self::ET_Invariant /* = () → void */ #this = f; return #this; } -static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant +static inline-class-member method ET_Invariant|_#new#tearOff(dynamic f) → self::ET_Invariant /* = () → void */ return self::ET_Invariant|(f); -static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant { - lowered final self::ET_Covariant #this = f; +static inline-class-member method ET_Covariant|(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|::T% */ { + lowered final self::ET_Covariant /* = () → self::ET_Covariant|::T% */ #this = f; return #this; } -static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant +static inline-class-member method ET_Covariant|_#new#tearOff(dynamic f) → self::ET_Covariant /* = () → self::ET_Covariant|_#new#tearOff::T% */ return self::ET_Covariant|(f); -static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant { - lowered final self::ET_Bivariant #this = f; +static inline-class-member method ET_Bivariant|(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|::T%) → self::ET_Bivariant|::T% */ { + lowered final self::ET_Bivariant /* = (self::ET_Bivariant|::T%) → self::ET_Bivariant|::T% */ #this = f; return #this; } -static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant +static inline-class-member method ET_Bivariant|_#new#tearOff(dynamic f) → self::ET_Bivariant /* = (self::ET_Bivariant|_#new#tearOff::T%) → self::ET_Bivariant|_#new#tearOff::T% */ return self::ET_Bivariant|(f); -static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias { - lowered final self::ET_ContravariantAlias #this = f; +static inline-class-member method ET_ContravariantAlias|(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|::T%) → void */ { + lowered final self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias +static inline-class-member method ET_ContravariantAlias|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias /* = (self::ET_ContravariantAlias|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias|(f); -static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias { - lowered final self::ET_InvariantAlias #this = f; +static inline-class-member method ET_InvariantAlias|(dynamic f) → self::ET_InvariantAlias /* = () → void */ { + lowered final self::ET_InvariantAlias /* = () → void */ #this = f; return #this; } -static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias +static inline-class-member method ET_InvariantAlias|_#new#tearOff(dynamic f) → self::ET_InvariantAlias /* = () → void */ return self::ET_InvariantAlias|(f); -static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias { - lowered final self::ET_CovariantAlias #this = f; +static inline-class-member method ET_CovariantAlias|(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|::T% */ { + lowered final self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|::T% */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias +static inline-class-member method ET_CovariantAlias|_#new#tearOff(dynamic f) → self::ET_CovariantAlias /* = () → self::ET_CovariantAlias|_#new#tearOff::T% */ return self::ET_CovariantAlias|(f); -static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias { - lowered final self::ET_BivariantAlias #this = f; +static inline-class-member method ET_BivariantAlias|(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|::T%) → self::ET_BivariantAlias|::T% */ { + lowered final self::ET_BivariantAlias /* = (self::ET_BivariantAlias|::T%) → self::ET_BivariantAlias|::T% */ #this = f; return #this; } -static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias +static inline-class-member method ET_BivariantAlias|_#new#tearOff(dynamic f) → self::ET_BivariantAlias /* = (self::ET_BivariantAlias|_#new#tearOff::T%) → self::ET_BivariantAlias|_#new#tearOff::T% */ return self::ET_BivariantAlias|(f); -static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 { - lowered final self::ET_ContravariantAlias1 #this = f; +static inline-class-member method ET_ContravariantAlias1|(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|::T%) → void */ { + lowered final self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 +static inline-class-member method ET_ContravariantAlias1|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias1 /* = () → (self::ET_ContravariantAlias1|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias1|(f); -static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 { - lowered final self::ET_ContravariantAlias2 #this = f; +static inline-class-member method ET_ContravariantAlias2|(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|::T%) → void */ { + lowered final self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|::T%) → void */ #this = f; return #this; } -static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 +static inline-class-member method ET_ContravariantAlias2|_#new#tearOff(dynamic f) → self::ET_ContravariantAlias2 /* = (() → self::ET_ContravariantAlias2|_#new#tearOff::T%) → void */ return self::ET_ContravariantAlias2|(f); -static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 { - lowered final self::ET_CovariantAlias1 #this = f; +static inline-class-member method ET_CovariantAlias1|(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|::T% */ { + lowered final self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|::T% */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 +static inline-class-member method ET_CovariantAlias1|_#new#tearOff(dynamic f) → self::ET_CovariantAlias1 /* = () → () → self::ET_CovariantAlias1|_#new#tearOff::T% */ return self::ET_CovariantAlias1|(f); -static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 { - lowered final self::ET_CovariantAlias2 #this = f; +static inline-class-member method ET_CovariantAlias2|(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|::T%) → void) → void */ { + lowered final self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|::T%) → void) → void */ #this = f; return #this; } -static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 +static inline-class-member method ET_CovariantAlias2|_#new#tearOff(dynamic f) → self::ET_CovariantAlias2 /* = ((self::ET_CovariantAlias2|_#new#tearOff::T%) → void) → void */ return self::ET_CovariantAlias2|(f); diff --git a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.strong.expect index 79c869f4b6c..1004d92e3db 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.strong.expect @@ -28,35 +28,35 @@ extension type GenericClass(T% it) { constructor _ = self::GenericClass|_; tearoff _ = self::GenericClass|_#_#tearOff; } -static inline-class-member method Class|_(dynamic it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|_(dynamic it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|_(it); -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void { + self::Class /* = core::int */ local = #this; void localM = self::Class|instanceMethod(#this); () → void localT = self::Class|get#instanceMethod(#this); core::int localG = self::Class|get#instanceGetter(#this); } -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int return 42; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [core::int i = #C1]) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [core::int i = #C1]) → void { + self::Class /* = core::int */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::Class|genericInstanceMethod(#this, s); core::int localG2 = self::Class|genericInstanceMethod(#this, i); core::num localG3 = self::Class|genericInstanceMethod(#this, i); } -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C1]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% return s; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void { self::Class|staticMethod(); @@ -66,35 +66,35 @@ static inline-class-member method Class|staticMethod() → void { } static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% return s; -static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass /* = self::GenericClass|_::T% */ { + lowered final self::GenericClass /* = self::GenericClass|_::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#_#tearOff::T% */ return self::GenericClass|_(it); -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void { + self::GenericClass /* = self::GenericClass|instanceMethod::T% */ local = #this; void localM = self::GenericClass|instanceMethod(#this); () → void localT = self::GenericClass|get#instanceMethod(#this); self::GenericClass|instanceMethod::T% localG = self::GenericClass|get#instanceGetter(#this); } -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% return throw ""; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {core::int i = #C1}) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {core::int i = #C1}) → void { + self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::GenericClass|genericInstanceMethod(#this, s); core::int localG2 = self::GenericClass|genericInstanceMethod(#this, i); core::num localG3 = self::GenericClass|genericInstanceMethod(#this, i); } -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C1}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% return s; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void { self::GenericClass|staticMethod(); diff --git a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.strong.transformed.expect index 79c869f4b6c..1004d92e3db 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.strong.transformed.expect @@ -28,35 +28,35 @@ extension type GenericClass(T% it) { constructor _ = self::GenericClass|_; tearoff _ = self::GenericClass|_#_#tearOff; } -static inline-class-member method Class|_(dynamic it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|_(dynamic it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|_(it); -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void { + self::Class /* = core::int */ local = #this; void localM = self::Class|instanceMethod(#this); () → void localT = self::Class|get#instanceMethod(#this); core::int localG = self::Class|get#instanceGetter(#this); } -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int return 42; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [core::int i = #C1]) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [core::int i = #C1]) → void { + self::Class /* = core::int */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::Class|genericInstanceMethod(#this, s); core::int localG2 = self::Class|genericInstanceMethod(#this, i); core::num localG3 = self::Class|genericInstanceMethod(#this, i); } -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C1]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% return s; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void { self::Class|staticMethod(); @@ -66,35 +66,35 @@ static inline-class-member method Class|staticMethod() → void { } static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% return s; -static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass /* = self::GenericClass|_::T% */ { + lowered final self::GenericClass /* = self::GenericClass|_::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#_#tearOff::T% */ return self::GenericClass|_(it); -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void { + self::GenericClass /* = self::GenericClass|instanceMethod::T% */ local = #this; void localM = self::GenericClass|instanceMethod(#this); () → void localT = self::GenericClass|get#instanceMethod(#this); self::GenericClass|instanceMethod::T% localG = self::GenericClass|get#instanceGetter(#this); } -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% return throw ""; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {core::int i = #C1}) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {core::int i = #C1}) → void { + self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::GenericClass|genericInstanceMethod(#this, s); core::int localG2 = self::GenericClass|genericInstanceMethod(#this, i); core::num localG3 = self::GenericClass|genericInstanceMethod(#this, i); } -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C1}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% return s; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void { self::GenericClass|staticMethod(); diff --git a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.expect index 79c869f4b6c..1004d92e3db 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.expect @@ -28,35 +28,35 @@ extension type GenericClass(T% it) { constructor _ = self::GenericClass|_; tearoff _ = self::GenericClass|_#_#tearOff; } -static inline-class-member method Class|_(dynamic it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|_(dynamic it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|_(it); -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void { + self::Class /* = core::int */ local = #this; void localM = self::Class|instanceMethod(#this); () → void localT = self::Class|get#instanceMethod(#this); core::int localG = self::Class|get#instanceGetter(#this); } -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int return 42; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [core::int i = #C1]) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [core::int i = #C1]) → void { + self::Class /* = core::int */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::Class|genericInstanceMethod(#this, s); core::int localG2 = self::Class|genericInstanceMethod(#this, i); core::num localG3 = self::Class|genericInstanceMethod(#this, i); } -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C1]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% return s; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void { self::Class|staticMethod(); @@ -66,35 +66,35 @@ static inline-class-member method Class|staticMethod() → void { } static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% return s; -static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass /* = self::GenericClass|_::T% */ { + lowered final self::GenericClass /* = self::GenericClass|_::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#_#tearOff::T% */ return self::GenericClass|_(it); -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void { + self::GenericClass /* = self::GenericClass|instanceMethod::T% */ local = #this; void localM = self::GenericClass|instanceMethod(#this); () → void localT = self::GenericClass|get#instanceMethod(#this); self::GenericClass|instanceMethod::T% localG = self::GenericClass|get#instanceGetter(#this); } -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% return throw ""; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {core::int i = #C1}) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {core::int i = #C1}) → void { + self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::GenericClass|genericInstanceMethod(#this, s); core::int localG2 = self::GenericClass|genericInstanceMethod(#this, i); core::num localG3 = self::GenericClass|genericInstanceMethod(#this, i); } -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C1}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% return s; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void { self::GenericClass|staticMethod(); diff --git a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.modular.expect index 79c869f4b6c..1004d92e3db 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.modular.expect @@ -28,35 +28,35 @@ extension type GenericClass(T% it) { constructor _ = self::GenericClass|_; tearoff _ = self::GenericClass|_#_#tearOff; } -static inline-class-member method Class|_(dynamic it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|_(dynamic it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|_(it); -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void { + self::Class /* = core::int */ local = #this; void localM = self::Class|instanceMethod(#this); () → void localT = self::Class|get#instanceMethod(#this); core::int localG = self::Class|get#instanceGetter(#this); } -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int return 42; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [core::int i = #C1]) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [core::int i = #C1]) → void { + self::Class /* = core::int */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::Class|genericInstanceMethod(#this, s); core::int localG2 = self::Class|genericInstanceMethod(#this, i); core::num localG3 = self::Class|genericInstanceMethod(#this, i); } -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C1]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% return s; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void { self::Class|staticMethod(); @@ -66,35 +66,35 @@ static inline-class-member method Class|staticMethod() → void { } static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% return s; -static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass /* = self::GenericClass|_::T% */ { + lowered final self::GenericClass /* = self::GenericClass|_::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#_#tearOff::T% */ return self::GenericClass|_(it); -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void { + self::GenericClass /* = self::GenericClass|instanceMethod::T% */ local = #this; void localM = self::GenericClass|instanceMethod(#this); () → void localT = self::GenericClass|get#instanceMethod(#this); self::GenericClass|instanceMethod::T% localG = self::GenericClass|get#instanceGetter(#this); } -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% return throw ""; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {core::int i = #C1}) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {core::int i = #C1}) → void { + self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::GenericClass|genericInstanceMethod(#this, s); core::int localG2 = self::GenericClass|genericInstanceMethod(#this, i); core::num localG3 = self::GenericClass|genericInstanceMethod(#this, i); } -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C1}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% return s; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void { self::GenericClass|staticMethod(); diff --git a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.outline.expect index 0644a2d9f2d..42bf35b7e68 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.outline.expect @@ -28,45 +28,45 @@ extension type GenericClass(T% it) { constructor _ = self::GenericClass|_; tearoff _ = self::GenericClass|_#_#tearOff; } -static inline-class-member method Class|_(dynamic it) → self::Class +static inline-class-member method Class|_(dynamic it) → self::Class /* = core::int */ ; -static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|_(it); -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void ; -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int ; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [has-declared-initializer core::int i]) → void +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [has-declared-initializer core::int i]) → void ; -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% ; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void ; static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% ; -static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass /* = self::GenericClass|_::T% */ ; -static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#_#tearOff::T% */ return self::GenericClass|_(it); -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void ; -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% ; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {has-declared-initializer core::int i}) → void +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {has-declared-initializer core::int i}) → void ; -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% ; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.transformed.expect index 79c869f4b6c..1004d92e3db 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/procedures.dart.weak.transformed.expect @@ -28,35 +28,35 @@ extension type GenericClass(T% it) { constructor _ = self::GenericClass|_; tearoff _ = self::GenericClass|_#_#tearOff; } -static inline-class-member method Class|_(dynamic it) → self::Class { - lowered final self::Class #this = it; +static inline-class-member method Class|_(dynamic it) → self::Class /* = core::int */ { + lowered final self::Class /* = core::int */ #this = it; return #this; } -static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class +static inline-class-member method Class|_#_#tearOff(dynamic it) → self::Class /* = core::int */ return self::Class|_(it); -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void { + self::Class /* = core::int */ local = #this; void localM = self::Class|instanceMethod(#this); () → void localT = self::Class|get#instanceMethod(#this); core::int localG = self::Class|get#instanceGetter(#this); } -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int return 42; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [core::int i = #C1]) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [core::int i = #C1]) → void { + self::Class /* = core::int */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::Class|genericInstanceMethod(#this, s); core::int localG2 = self::Class|genericInstanceMethod(#this, i); core::num localG3 = self::Class|genericInstanceMethod(#this, i); } -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C1]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% return s; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void { self::Class|staticMethod(); @@ -66,35 +66,35 @@ static inline-class-member method Class|staticMethod() → void { } static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% return s; -static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass { - lowered final self::GenericClass #this = it; +static inline-class-member method GenericClass|_(dynamic it) → self::GenericClass /* = self::GenericClass|_::T% */ { + lowered final self::GenericClass /* = self::GenericClass|_::T% */ #this = it; return #this; } -static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass +static inline-class-member method GenericClass|_#_#tearOff(dynamic it) → self::GenericClass /* = self::GenericClass|_#_#tearOff::T% */ return self::GenericClass|_(it); -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void { + self::GenericClass /* = self::GenericClass|instanceMethod::T% */ local = #this; void localM = self::GenericClass|instanceMethod(#this); () → void localT = self::GenericClass|get#instanceMethod(#this); self::GenericClass|instanceMethod::T% localG = self::GenericClass|get#instanceGetter(#this); } -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% return throw ""; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {core::int i = #C1}) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {core::int i = #C1}) → void { + self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::GenericClass|genericInstanceMethod(#this, s); core::int localG2 = self::GenericClass|genericInstanceMethod(#this, i); core::num localG3 = self::GenericClass|genericInstanceMethod(#this, i); } -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C1}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% return s; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void { self::GenericClass|staticMethod(); diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.strong.expect index 7fb202e1f91..03d2343c768 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.strong.expect @@ -44,20 +44,20 @@ extension type Duplicate(core::bool instanceField) { constructor • = self::Duplicate|; tearoff • = self::Duplicate|_#new#tearOff; } -static inline-class-member method Missing|() → self::Missing { - lowered final self::Missing #this; +static inline-class-member method Missing|() → self::Missing /* = invalid-type */ { + lowered final self::Missing /* = invalid-type */ #this; return #this; } -static inline-class-member method Missing|_#new#tearOff() → self::Missing +static inline-class-member method Missing|_#new#tearOff() → self::Missing /* = invalid-type */ return self::Missing|(); -static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple { - lowered final self::Multiple #this = instanceField2; +static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ { + lowered final self::Multiple /* = core::bool */ #this = instanceField2; return #this; } -static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1, instanceField2); -static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate { - lowered final self::Duplicate #this; +static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ { + lowered final self::Duplicate /* = core::bool */ #this; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/representation.dart:9:31: Error: Can't use 'instanceField' because it is declared more than once. extension type Duplicate(bool instanceField, int instanceField) {} // Error ^^^^^^^^^^^^^"; @@ -66,5 +66,5 @@ extension type Duplicate(bool instanceField, int instanceField) {} // Error ^^^^^^^^^^^^^"; return #this; } -static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField, instanceField); diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.strong.transformed.expect index 7fb202e1f91..03d2343c768 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.strong.transformed.expect @@ -44,20 +44,20 @@ extension type Duplicate(core::bool instanceField) { constructor • = self::Duplicate|; tearoff • = self::Duplicate|_#new#tearOff; } -static inline-class-member method Missing|() → self::Missing { - lowered final self::Missing #this; +static inline-class-member method Missing|() → self::Missing /* = invalid-type */ { + lowered final self::Missing /* = invalid-type */ #this; return #this; } -static inline-class-member method Missing|_#new#tearOff() → self::Missing +static inline-class-member method Missing|_#new#tearOff() → self::Missing /* = invalid-type */ return self::Missing|(); -static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple { - lowered final self::Multiple #this = instanceField2; +static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ { + lowered final self::Multiple /* = core::bool */ #this = instanceField2; return #this; } -static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1, instanceField2); -static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate { - lowered final self::Duplicate #this; +static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ { + lowered final self::Duplicate /* = core::bool */ #this; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/representation.dart:9:31: Error: Can't use 'instanceField' because it is declared more than once. extension type Duplicate(bool instanceField, int instanceField) {} // Error ^^^^^^^^^^^^^"; @@ -66,5 +66,5 @@ extension type Duplicate(bool instanceField, int instanceField) {} // Error ^^^^^^^^^^^^^"; return #this; } -static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField, instanceField); diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.expect index 7fb202e1f91..03d2343c768 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.expect @@ -44,20 +44,20 @@ extension type Duplicate(core::bool instanceField) { constructor • = self::Duplicate|; tearoff • = self::Duplicate|_#new#tearOff; } -static inline-class-member method Missing|() → self::Missing { - lowered final self::Missing #this; +static inline-class-member method Missing|() → self::Missing /* = invalid-type */ { + lowered final self::Missing /* = invalid-type */ #this; return #this; } -static inline-class-member method Missing|_#new#tearOff() → self::Missing +static inline-class-member method Missing|_#new#tearOff() → self::Missing /* = invalid-type */ return self::Missing|(); -static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple { - lowered final self::Multiple #this = instanceField2; +static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ { + lowered final self::Multiple /* = core::bool */ #this = instanceField2; return #this; } -static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1, instanceField2); -static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate { - lowered final self::Duplicate #this; +static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ { + lowered final self::Duplicate /* = core::bool */ #this; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/representation.dart:9:31: Error: Can't use 'instanceField' because it is declared more than once. extension type Duplicate(bool instanceField, int instanceField) {} // Error ^^^^^^^^^^^^^"; @@ -66,5 +66,5 @@ extension type Duplicate(bool instanceField, int instanceField) {} // Error ^^^^^^^^^^^^^"; return #this; } -static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField, instanceField); diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.modular.expect index 7fb202e1f91..03d2343c768 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.modular.expect @@ -44,20 +44,20 @@ extension type Duplicate(core::bool instanceField) { constructor • = self::Duplicate|; tearoff • = self::Duplicate|_#new#tearOff; } -static inline-class-member method Missing|() → self::Missing { - lowered final self::Missing #this; +static inline-class-member method Missing|() → self::Missing /* = invalid-type */ { + lowered final self::Missing /* = invalid-type */ #this; return #this; } -static inline-class-member method Missing|_#new#tearOff() → self::Missing +static inline-class-member method Missing|_#new#tearOff() → self::Missing /* = invalid-type */ return self::Missing|(); -static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple { - lowered final self::Multiple #this = instanceField2; +static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ { + lowered final self::Multiple /* = core::bool */ #this = instanceField2; return #this; } -static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1, instanceField2); -static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate { - lowered final self::Duplicate #this; +static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ { + lowered final self::Duplicate /* = core::bool */ #this; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/representation.dart:9:31: Error: Can't use 'instanceField' because it is declared more than once. extension type Duplicate(bool instanceField, int instanceField) {} // Error ^^^^^^^^^^^^^"; @@ -66,5 +66,5 @@ extension type Duplicate(bool instanceField, int instanceField) {} // Error ^^^^^^^^^^^^^"; return #this; } -static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField, instanceField); diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.outline.expect index 919312e9231..1b312e15f3b 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.outline.expect @@ -31,15 +31,15 @@ extension type Duplicate(core::bool instanceField) { constructor • = self::Duplicate|; tearoff • = self::Duplicate|_#new#tearOff; } -static inline-class-member method Missing|() → self::Missing +static inline-class-member method Missing|() → self::Missing /* = invalid-type */ ; -static inline-class-member method Missing|_#new#tearOff() → self::Missing +static inline-class-member method Missing|_#new#tearOff() → self::Missing /* = invalid-type */ return self::Missing|(); -static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple +static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ ; -static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1, instanceField2); -static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate +static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ ; -static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField, instanceField); diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.transformed.expect index 7fb202e1f91..03d2343c768 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/representation.dart.weak.transformed.expect @@ -44,20 +44,20 @@ extension type Duplicate(core::bool instanceField) { constructor • = self::Duplicate|; tearoff • = self::Duplicate|_#new#tearOff; } -static inline-class-member method Missing|() → self::Missing { - lowered final self::Missing #this; +static inline-class-member method Missing|() → self::Missing /* = invalid-type */ { + lowered final self::Missing /* = invalid-type */ #this; return #this; } -static inline-class-member method Missing|_#new#tearOff() → self::Missing +static inline-class-member method Missing|_#new#tearOff() → self::Missing /* = invalid-type */ return self::Missing|(); -static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple { - lowered final self::Multiple #this = instanceField2; +static inline-class-member method Multiple|(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ { + lowered final self::Multiple /* = core::bool */ #this = instanceField2; return #this; } -static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(dynamic instanceField1, dynamic instanceField2) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1, instanceField2); -static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate { - lowered final self::Duplicate #this; +static inline-class-member method Duplicate|(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ { + lowered final self::Duplicate /* = core::bool */ #this; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/representation.dart:9:31: Error: Can't use 'instanceField' because it is declared more than once. extension type Duplicate(bool instanceField, int instanceField) {} // Error ^^^^^^^^^^^^^"; @@ -66,5 +66,5 @@ extension type Duplicate(bool instanceField, int instanceField) {} // Error ^^^^^^^^^^^^^"; return #this; } -static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(dynamic instanceField, dynamic instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField, instanceField); diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart new file mode 100644 index 00000000000..b44e50d7f24 --- /dev/null +++ b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart @@ -0,0 +1,238 @@ +// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +extension type A(int it) {} +extension type Ba(A it) {} +extension type Bb(A? it) {} +extension type C(T it) {} +extension type Da(C it) {} +extension type Db(C it) {} +extension type Dc(C? it) {} +extension type E(int? it) {} +extension type Fa(E it) {} +extension type Fb(E? it) {} +extension type G(T? it) {} +extension type Ha(G it) {} +extension type Hb(G it) {} +extension type Hc(G? it) {} +extension type I(T it) {} +extension type Ja(I it) {} +extension type Jc(I? it) {} +extension type K(T? it) {} +extension type La(K it) {} +extension type Lc(K? it) {} + +testA(Never n) { + A a1 = n; + A? a2 = n; +} + +testBa(Never n) { + Ba ba1 = n; + Ba? ba2 = n; + Bb bb3 = n; + Bb? bb4 = n; +} + +testC(Never n) { + C c1 = n; + C? c2 = n; + C c3 = n; + C c4 = n; + C? c5 = n; + C? c6 = n; + C c7 = n; + C? c8 = n; + C c9 = n; + C? c10 = n; + C c11 = n; + C? c12 = n; + C c13 = n; + C? c14 = n; +} + +testDa(Never n) { + Da da1 = n; + Da? da2 = n; + Da da3 = n; + Da da4 = n; + Da? da5 = n; + Da? da6 = n; + Da da7 = n; + Da? da8 = n; + Da da9 = n; + Da? da10 = n; + Da da11 = n; + Da? da12 = n; + Da da13 = n; + Da? da14 = n; +} + +testDb(Never n) { + Db db1 = n; + Db? db2 = n; + Db db3 = n; + Db db4 = n; + Db? db5 = n; + Db? db6 = n; + Db db7 = n; + Db? db8 = n; + Db db9 = n; + Db? db10 = n; + Db db11 = n; + Db? db12 = n; + Db db13 = n; + Db? db14 = n; +} + +testDc(Never n) { + Dc dc1 = n; + Dc? dc2 = n; + Dc dc3 = n; + Dc dc4 = n; + Dc? dc5 = n; + Dc? dc6 = n; + Dc dc7 = n; + Dc? dc8 = n; + Dc dc9 = n; + Dc? dc10 = n; + Dc dc11 = n; + Dc? dc12 = n; + Dc dc13 = n; + Dc? dc14 = n; +} + +testE(Never n) { + E e1 = n; + E? e2 = n; +} + +testF(Never n) { + Fa fa1 = n; + Fa? fa2 = n; + Fb fb3 = n; + Fb? fb4 = n; +} + +testG(Never n) { + G g1 = n; + G? g2 = n; + G g3 = n; + G g4 = n; + G? g5 = n; + G? g6 = n; + G g7 = n; + G? g8 = n; + G g9 = n; + G? g10 = n; + G g11 = n; + G? g12 = n; + G g13 = n; + G? g14 = n; +} + +testHa(Never n) { + Ha ha1 = n; + Ha? ha2 = n; + Ha ha3 = n; + Ha ha4 = n; + Ha? ha5 = n; + Ha? ha6 = n; + Ha ha7 = n; + Ha? ha8 = n; + Ha ha9 = n; + Ha? ha10 = n; + Ha ha11 = n; + Ha? ha12 = n; + Ha ha13 = n; + Ha? ha14 = n; +} + +testHb(Never n) { + Hb hb1 = n; + Hb? hb2 = n; + Hb hb3 = n; + Hb hb4 = n; + Hb? hb5 = n; + Hb? hb6 = n; + Hb hb7 = n; + Hb? hb8 = n; + Hb hb9 = n; + Hb? hb10 = n; + Hb hb11 = n; + Hb? hb12 = n; + Hb hb13 = n; + Hb? hb14 = n; +} + +testHc(Never n) { + Hc hc1 = n; + Hc? hc2 = n; + Hc hc3 = n; + Hc hc4 = n; + Hc? hc5 = n; + Hc? hc6 = n; + Hc hc7 = n; + Hc? hc8 = n; + Hc hc9 = n; + Hc? hc10 = n; + Hc hc11 = n; + Hc? hc12 = n; + Hc hc13 = n; + Hc? hc14 = n; +} + +testI(Never n) { + I i1 = n; + I? i2 = n; + I i3 = n; + I? i5 = n; + I i11 = n; + I? i12 = n; +} + +testJa(Never n) { + Ja ja1 = n; + Ja? ja2 = n; + Ja ja3 = n; + Ja? ja5 = n; + Ja ja11 = n; + Ja? ja12 = n; +} + +testJc(Never n) { + Jc jc1 = n; + Jc? jc2 = n; + Jc jc3 = n; + Jc? jc5 = n; + Jc jc11 = n; + Jc? jc12 = n; +} + +testK(Never n) { + K k1 = n; + K? k2 = n; + K k3 = n; + K? k5 = n; + K k11 = n; + K? k12 = n; +} + +testLa(Never n) { + La la1 = n; + La? la2 = n; + La la3 = n; + La? la5 = n; + La la11 = n; + La? la12 = n; +} + +testLc(Never n) { + Lc lc1 = n; + Lc? lc2 = n; + Lc lc3 = n; + Lc? lc5 = n; + Lc lc11 = n; + Lc? lc12 = n; +} \ No newline at end of file diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.strong.expect new file mode 100644 index 00000000000..9dc182e4b45 --- /dev/null +++ b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.strong.expect @@ -0,0 +1,400 @@ +library; +import self as self; +import "dart:core" as core; + +extension type A(core::int it) { + constructor • = self::A|; + tearoff • = self::A|_#new#tearOff; +} +extension type Ba(self::A /* = core::int */ it) { + constructor • = self::Ba|; + tearoff • = self::Ba|_#new#tearOff; +} +extension type Bb(self::A? /* = core::int? */ it) { + constructor • = self::Bb|; + tearoff • = self::Bb|_#new#tearOff; +} +extension type C(T% it) { + constructor • = self::C|; + tearoff • = self::C|_#new#tearOff; +} +extension type Da(self::C /* = T% */ it) { + constructor • = self::Da|; + tearoff • = self::Da|_#new#tearOff; +} +extension type Db(self::C /* = T? */ it) { + constructor • = self::Db|; + tearoff • = self::Db|_#new#tearOff; +} +extension type Dc(self::C? /* = T? */ it) { + constructor • = self::Dc|; + tearoff • = self::Dc|_#new#tearOff; +} +extension type E(core::int? it) { + constructor • = self::E|; + tearoff • = self::E|_#new#tearOff; +} +extension type Fa(self::E /* = core::int? */ it) { + constructor • = self::Fa|; + tearoff • = self::Fa|_#new#tearOff; +} +extension type Fb(self::E? /* = core::int? */ it) { + constructor • = self::Fb|; + tearoff • = self::Fb|_#new#tearOff; +} +extension type G(T? it) { + constructor • = self::G|; + tearoff • = self::G|_#new#tearOff; +} +extension type Ha(self::G /* = T? */ it) { + constructor • = self::Ha|; + tearoff • = self::Ha|_#new#tearOff; +} +extension type Hb(self::G /* = T? */ it) { + constructor • = self::Hb|; + tearoff • = self::Hb|_#new#tearOff; +} +extension type Hc(self::G? /* = T? */ it) { + constructor • = self::Hc|; + tearoff • = self::Hc|_#new#tearOff; +} +extension type I(T it) { + constructor • = self::I|; + tearoff • = self::I|_#new#tearOff; +} +extension type Ja(self::I /* = T */ it) { + constructor • = self::Ja|; + tearoff • = self::Ja|_#new#tearOff; +} +extension type Jc(self::I? /* = T? */ it) { + constructor • = self::Jc|; + tearoff • = self::Jc|_#new#tearOff; +} +extension type K(T? it) { + constructor • = self::K|; + tearoff • = self::K|_#new#tearOff; +} +extension type La(self::K /* = T? */ it) { + constructor • = self::La|; + tearoff • = self::La|_#new#tearOff; +} +extension type Lc(self::K? /* = T? */ it) { + constructor • = self::Lc|; + tearoff • = self::Lc|_#new#tearOff; +} +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; + return #this; +} +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ + return self::A|(it); +static inline-class-member method Ba|(dynamic it) → self::Ba /* = core::int */ { + lowered final self::Ba /* = core::int */ #this = it; + return #this; +} +static inline-class-member method Ba|_#new#tearOff(dynamic it) → self::Ba /* = core::int */ + return self::Ba|(it); +static inline-class-member method Bb|(dynamic it) → self::Bb /* = core::int? */ { + lowered final self::Bb /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method Bb|_#new#tearOff(dynamic it) → self::Bb /* = core::int? */ + return self::Bb|(it); +static inline-class-member method C|(dynamic it) → self::C /* = self::C|::T% */ { + lowered final self::C /* = self::C|::T% */ #this = it; + return #this; +} +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::C|_#new#tearOff::T% */ + return self::C|(it); +static inline-class-member method Da|(dynamic it) → self::Da /* = self::Da|::T% */ { + lowered final self::Da /* = self::Da|::T% */ #this = it; + return #this; +} +static inline-class-member method Da|_#new#tearOff(dynamic it) → self::Da /* = self::Da|_#new#tearOff::T% */ + return self::Da|(it); +static inline-class-member method Db|(dynamic it) → self::Db /* = self::Db|::T? */ { + lowered final self::Db /* = self::Db|::T? */ #this = it; + return #this; +} +static inline-class-member method Db|_#new#tearOff(dynamic it) → self::Db /* = self::Db|_#new#tearOff::T? */ + return self::Db|(it); +static inline-class-member method Dc|(dynamic it) → self::Dc /* = self::Dc|::T? */ { + lowered final self::Dc /* = self::Dc|::T? */ #this = it; + return #this; +} +static inline-class-member method Dc|_#new#tearOff(dynamic it) → self::Dc /* = self::Dc|_#new#tearOff::T? */ + return self::Dc|(it); +static inline-class-member method E|(dynamic it) → self::E /* = core::int? */ { + lowered final self::E /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int? */ + return self::E|(it); +static inline-class-member method Fa|(dynamic it) → self::Fa /* = core::int? */ { + lowered final self::Fa /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method Fa|_#new#tearOff(dynamic it) → self::Fa /* = core::int? */ + return self::Fa|(it); +static inline-class-member method Fb|_#new#tearOff(dynamic it) → self::Fb /* = core::int? */ + return self::Fb|(it); +static inline-class-member method Fb|(dynamic it) → self::Fb /* = core::int? */ { + lowered final self::Fb /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method G|(dynamic it) → self::G /* = self::G|::T? */ { + lowered final self::G /* = self::G|::T? */ #this = it; + return #this; +} +static inline-class-member method G|_#new#tearOff(dynamic it) → self::G /* = self::G|_#new#tearOff::T? */ + return self::G|(it); +static inline-class-member method Ha|(dynamic it) → self::Ha /* = self::Ha|::T? */ { + lowered final self::Ha /* = self::Ha|::T? */ #this = it; + return #this; +} +static inline-class-member method Ha|_#new#tearOff(dynamic it) → self::Ha /* = self::Ha|_#new#tearOff::T? */ + return self::Ha|(it); +static inline-class-member method Hb|(dynamic it) → self::Hb /* = self::Hb|::T? */ { + lowered final self::Hb /* = self::Hb|::T? */ #this = it; + return #this; +} +static inline-class-member method Hb|_#new#tearOff(dynamic it) → self::Hb /* = self::Hb|_#new#tearOff::T? */ + return self::Hb|(it); +static inline-class-member method Hc|(dynamic it) → self::Hc /* = self::Hc|::T? */ { + lowered final self::Hc /* = self::Hc|::T? */ #this = it; + return #this; +} +static inline-class-member method Hc|_#new#tearOff(dynamic it) → self::Hc /* = self::Hc|_#new#tearOff::T? */ + return self::Hc|(it); +static inline-class-member method I|(dynamic it) → self::I /* = self::I|::T */ { + lowered final self::I /* = self::I|::T */ #this = it; + return #this; +} +static inline-class-member method I|_#new#tearOff(dynamic it) → self::I /* = self::I|_#new#tearOff::T */ + return self::I|(it); +static inline-class-member method Ja|(dynamic it) → self::Ja /* = self::Ja|::T */ { + lowered final self::Ja /* = self::Ja|::T */ #this = it; + return #this; +} +static inline-class-member method Ja|_#new#tearOff(dynamic it) → self::Ja /* = self::Ja|_#new#tearOff::T */ + return self::Ja|(it); +static inline-class-member method Jc|(dynamic it) → self::Jc /* = self::Jc|::T? */ { + lowered final self::Jc /* = self::Jc|::T? */ #this = it; + return #this; +} +static inline-class-member method Jc|_#new#tearOff(dynamic it) → self::Jc /* = self::Jc|_#new#tearOff::T? */ + return self::Jc|(it); +static inline-class-member method K|(dynamic it) → self::K /* = self::K|::T? */ { + lowered final self::K /* = self::K|::T? */ #this = it; + return #this; +} +static inline-class-member method K|_#new#tearOff(dynamic it) → self::K /* = self::K|_#new#tearOff::T? */ + return self::K|(it); +static inline-class-member method La|(dynamic it) → self::La /* = self::La|::T? */ { + lowered final self::La /* = self::La|::T? */ #this = it; + return #this; +} +static inline-class-member method La|_#new#tearOff(dynamic it) → self::La /* = self::La|_#new#tearOff::T? */ + return self::La|(it); +static inline-class-member method Lc|(dynamic it) → self::Lc /* = self::Lc|::T? */ { + lowered final self::Lc /* = self::Lc|::T? */ #this = it; + return #this; +} +static inline-class-member method Lc|_#new#tearOff(dynamic it) → self::Lc /* = self::Lc|_#new#tearOff::T? */ + return self::Lc|(it); +static method testA(Never n) → dynamic { + self::A /* = core::int */ a1 = n; + self::A? /* = core::int? */ a2 = n; +} +static method testBa(Never n) → dynamic { + self::Ba /* = core::int */ ba1 = n; + self::Ba? /* = core::int? */ ba2 = n; + self::Bb /* = core::int? */ bb3 = n; + self::Bb? /* = core::int? */ bb4 = n; +} +static method testC(Never n) → dynamic { + self::C /* = dynamic */ c1 = n; + self::C? /* = dynamic */ c2 = n; + self::C /* = core::int */ c3 = n; + self::C /* = core::int? */ c4 = n; + self::C? /* = core::int? */ c5 = n; + self::C? /* = core::int? */ c6 = n; + self::C /* = self::testC::S% */ c7 = n; + self::C? /* = self::testC::S? */ c8 = n; + self::C /* = self::testC::S? */ c9 = n; + self::C? /* = self::testC::S? */ c10 = n; + self::C /* = self::testC::U */ c11 = n; + self::C? /* = self::testC::U? */ c12 = n; + self::C /* = self::testC::U? */ c13 = n; + self::C? /* = self::testC::U? */ c14 = n; +} +static method testDa(Never n) → dynamic { + self::Da /* = dynamic */ da1 = n; + self::Da? /* = dynamic */ da2 = n; + self::Da /* = core::int */ da3 = n; + self::Da /* = core::int? */ da4 = n; + self::Da? /* = core::int? */ da5 = n; + self::Da? /* = core::int? */ da6 = n; + self::Da /* = self::testDa::S% */ da7 = n; + self::Da? /* = self::testDa::S? */ da8 = n; + self::Da /* = self::testDa::S? */ da9 = n; + self::Da? /* = self::testDa::S? */ da10 = n; + self::Da /* = self::testDa::U */ da11 = n; + self::Da? /* = self::testDa::U? */ da12 = n; + self::Da /* = self::testDa::U? */ da13 = n; + self::Da? /* = self::testDa::U? */ da14 = n; +} +static method testDb(Never n) → dynamic { + self::Db /* = dynamic */ db1 = n; + self::Db? /* = dynamic */ db2 = n; + self::Db /* = core::int? */ db3 = n; + self::Db /* = core::int? */ db4 = n; + self::Db? /* = core::int? */ db5 = n; + self::Db? /* = core::int? */ db6 = n; + self::Db /* = self::testDb::S? */ db7 = n; + self::Db? /* = self::testDb::S? */ db8 = n; + self::Db /* = self::testDb::S? */ db9 = n; + self::Db? /* = self::testDb::S? */ db10 = n; + self::Db /* = self::testDb::U? */ db11 = n; + self::Db? /* = self::testDb::U? */ db12 = n; + self::Db /* = self::testDb::U? */ db13 = n; + self::Db? /* = self::testDb::U? */ db14 = n; +} +static method testDc(Never n) → dynamic { + self::Dc /* = dynamic */ dc1 = n; + self::Dc? /* = dynamic */ dc2 = n; + self::Dc /* = core::int? */ dc3 = n; + self::Dc /* = core::int? */ dc4 = n; + self::Dc? /* = core::int? */ dc5 = n; + self::Dc? /* = core::int? */ dc6 = n; + self::Dc /* = self::testDc::S? */ dc7 = n; + self::Dc? /* = self::testDc::S? */ dc8 = n; + self::Dc /* = self::testDc::S? */ dc9 = n; + self::Dc? /* = self::testDc::S? */ dc10 = n; + self::Dc /* = self::testDc::U? */ dc11 = n; + self::Dc? /* = self::testDc::U? */ dc12 = n; + self::Dc /* = self::testDc::U? */ dc13 = n; + self::Dc? /* = self::testDc::U? */ dc14 = n; +} +static method testE(Never n) → dynamic { + self::E /* = core::int? */ e1 = n; + self::E? /* = core::int? */ e2 = n; +} +static method testF(Never n) → dynamic { + self::Fa /* = core::int? */ fa1 = n; + self::Fa? /* = core::int? */ fa2 = n; + self::Fb /* = core::int? */ fb3 = n; + self::Fb? /* = core::int? */ fb4 = n; +} +static method testG(Never n) → dynamic { + self::G /* = dynamic */ g1 = n; + self::G? /* = dynamic */ g2 = n; + self::G /* = core::int? */ g3 = n; + self::G /* = core::int? */ g4 = n; + self::G? /* = core::int? */ g5 = n; + self::G? /* = core::int? */ g6 = n; + self::G /* = self::testG::S? */ g7 = n; + self::G? /* = self::testG::S? */ g8 = n; + self::G /* = self::testG::S? */ g9 = n; + self::G? /* = self::testG::S? */ g10 = n; + self::G /* = self::testG::U? */ g11 = n; + self::G? /* = self::testG::U? */ g12 = n; + self::G /* = self::testG::U? */ g13 = n; + self::G? /* = self::testG::U? */ g14 = n; +} +static method testHa(Never n) → dynamic { + self::Ha /* = dynamic */ ha1 = n; + self::Ha? /* = dynamic */ ha2 = n; + self::Ha /* = core::int? */ ha3 = n; + self::Ha /* = core::int? */ ha4 = n; + self::Ha? /* = core::int? */ ha5 = n; + self::Ha? /* = core::int? */ ha6 = n; + self::Ha /* = self::testHa::S? */ ha7 = n; + self::Ha? /* = self::testHa::S? */ ha8 = n; + self::Ha /* = self::testHa::S? */ ha9 = n; + self::Ha? /* = self::testHa::S? */ ha10 = n; + self::Ha /* = self::testHa::U? */ ha11 = n; + self::Ha? /* = self::testHa::U? */ ha12 = n; + self::Ha /* = self::testHa::U? */ ha13 = n; + self::Ha? /* = self::testHa::U? */ ha14 = n; +} +static method testHb(Never n) → dynamic { + self::Hb /* = dynamic */ hb1 = n; + self::Hb? /* = dynamic */ hb2 = n; + self::Hb /* = core::int? */ hb3 = n; + self::Hb /* = core::int? */ hb4 = n; + self::Hb? /* = core::int? */ hb5 = n; + self::Hb? /* = core::int? */ hb6 = n; + self::Hb /* = self::testHb::S? */ hb7 = n; + self::Hb? /* = self::testHb::S? */ hb8 = n; + self::Hb /* = self::testHb::S? */ hb9 = n; + self::Hb? /* = self::testHb::S? */ hb10 = n; + self::Hb /* = self::testHb::U? */ hb11 = n; + self::Hb? /* = self::testHb::U? */ hb12 = n; + self::Hb /* = self::testHb::U? */ hb13 = n; + self::Hb? /* = self::testHb::U? */ hb14 = n; +} +static method testHc(Never n) → dynamic { + self::Hc /* = dynamic */ hc1 = n; + self::Hc? /* = dynamic */ hc2 = n; + self::Hc /* = core::int? */ hc3 = n; + self::Hc /* = core::int? */ hc4 = n; + self::Hc? /* = core::int? */ hc5 = n; + self::Hc? /* = core::int? */ hc6 = n; + self::Hc /* = self::testHc::S? */ hc7 = n; + self::Hc? /* = self::testHc::S? */ hc8 = n; + self::Hc /* = self::testHc::S? */ hc9 = n; + self::Hc? /* = self::testHc::S? */ hc10 = n; + self::Hc /* = self::testHc::U? */ hc11 = n; + self::Hc? /* = self::testHc::U? */ hc12 = n; + self::Hc /* = self::testHc::U? */ hc13 = n; + self::Hc? /* = self::testHc::U? */ hc14 = n; +} +static method testI(Never n) → dynamic { + self::I /* = core::Object */ i1 = n; + self::I? /* = core::Object? */ i2 = n; + self::I /* = core::int */ i3 = n; + self::I? /* = core::int? */ i5 = n; + self::I /* = self::testI::U */ i11 = n; + self::I? /* = self::testI::U? */ i12 = n; +} +static method testJa(Never n) → dynamic { + self::Ja /* = core::Object */ ja1 = n; + self::Ja? /* = core::Object? */ ja2 = n; + self::Ja /* = core::int */ ja3 = n; + self::Ja? /* = core::int? */ ja5 = n; + self::Ja /* = self::testJa::U */ ja11 = n; + self::Ja? /* = self::testJa::U? */ ja12 = n; +} +static method testJc(Never n) → dynamic { + self::Jc /* = core::Object? */ jc1 = n; + self::Jc? /* = core::Object? */ jc2 = n; + self::Jc /* = core::int? */ jc3 = n; + self::Jc? /* = core::int? */ jc5 = n; + self::Jc /* = self::testJc::U? */ jc11 = n; + self::Jc? /* = self::testJc::U? */ jc12 = n; +} +static method testK(Never n) → dynamic { + self::K /* = core::Object? */ k1 = n; + self::K? /* = core::Object? */ k2 = n; + self::K /* = core::int? */ k3 = n; + self::K? /* = core::int? */ k5 = n; + self::K /* = self::testK::U? */ k11 = n; + self::K? /* = self::testK::U? */ k12 = n; +} +static method testLa(Never n) → dynamic { + self::La /* = core::Object? */ la1 = n; + self::La? /* = core::Object? */ la2 = n; + self::La /* = core::int? */ la3 = n; + self::La? /* = core::int? */ la5 = n; + self::La /* = self::testLa::U? */ la11 = n; + self::La? /* = self::testLa::U? */ la12 = n; +} +static method testLc(Never n) → dynamic { + self::Lc /* = core::Object? */ lc1 = n; + self::Lc? /* = core::Object? */ lc2 = n; + self::Lc /* = core::int? */ lc3 = n; + self::Lc? /* = core::int? */ lc5 = n; + self::Lc /* = self::testLc::U? */ lc11 = n; + self::Lc? /* = self::testLc::U? */ lc12 = n; +} diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.strong.transformed.expect new file mode 100644 index 00000000000..9dc182e4b45 --- /dev/null +++ b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.strong.transformed.expect @@ -0,0 +1,400 @@ +library; +import self as self; +import "dart:core" as core; + +extension type A(core::int it) { + constructor • = self::A|; + tearoff • = self::A|_#new#tearOff; +} +extension type Ba(self::A /* = core::int */ it) { + constructor • = self::Ba|; + tearoff • = self::Ba|_#new#tearOff; +} +extension type Bb(self::A? /* = core::int? */ it) { + constructor • = self::Bb|; + tearoff • = self::Bb|_#new#tearOff; +} +extension type C(T% it) { + constructor • = self::C|; + tearoff • = self::C|_#new#tearOff; +} +extension type Da(self::C /* = T% */ it) { + constructor • = self::Da|; + tearoff • = self::Da|_#new#tearOff; +} +extension type Db(self::C /* = T? */ it) { + constructor • = self::Db|; + tearoff • = self::Db|_#new#tearOff; +} +extension type Dc(self::C? /* = T? */ it) { + constructor • = self::Dc|; + tearoff • = self::Dc|_#new#tearOff; +} +extension type E(core::int? it) { + constructor • = self::E|; + tearoff • = self::E|_#new#tearOff; +} +extension type Fa(self::E /* = core::int? */ it) { + constructor • = self::Fa|; + tearoff • = self::Fa|_#new#tearOff; +} +extension type Fb(self::E? /* = core::int? */ it) { + constructor • = self::Fb|; + tearoff • = self::Fb|_#new#tearOff; +} +extension type G(T? it) { + constructor • = self::G|; + tearoff • = self::G|_#new#tearOff; +} +extension type Ha(self::G /* = T? */ it) { + constructor • = self::Ha|; + tearoff • = self::Ha|_#new#tearOff; +} +extension type Hb(self::G /* = T? */ it) { + constructor • = self::Hb|; + tearoff • = self::Hb|_#new#tearOff; +} +extension type Hc(self::G? /* = T? */ it) { + constructor • = self::Hc|; + tearoff • = self::Hc|_#new#tearOff; +} +extension type I(T it) { + constructor • = self::I|; + tearoff • = self::I|_#new#tearOff; +} +extension type Ja(self::I /* = T */ it) { + constructor • = self::Ja|; + tearoff • = self::Ja|_#new#tearOff; +} +extension type Jc(self::I? /* = T? */ it) { + constructor • = self::Jc|; + tearoff • = self::Jc|_#new#tearOff; +} +extension type K(T? it) { + constructor • = self::K|; + tearoff • = self::K|_#new#tearOff; +} +extension type La(self::K /* = T? */ it) { + constructor • = self::La|; + tearoff • = self::La|_#new#tearOff; +} +extension type Lc(self::K? /* = T? */ it) { + constructor • = self::Lc|; + tearoff • = self::Lc|_#new#tearOff; +} +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; + return #this; +} +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ + return self::A|(it); +static inline-class-member method Ba|(dynamic it) → self::Ba /* = core::int */ { + lowered final self::Ba /* = core::int */ #this = it; + return #this; +} +static inline-class-member method Ba|_#new#tearOff(dynamic it) → self::Ba /* = core::int */ + return self::Ba|(it); +static inline-class-member method Bb|(dynamic it) → self::Bb /* = core::int? */ { + lowered final self::Bb /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method Bb|_#new#tearOff(dynamic it) → self::Bb /* = core::int? */ + return self::Bb|(it); +static inline-class-member method C|(dynamic it) → self::C /* = self::C|::T% */ { + lowered final self::C /* = self::C|::T% */ #this = it; + return #this; +} +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::C|_#new#tearOff::T% */ + return self::C|(it); +static inline-class-member method Da|(dynamic it) → self::Da /* = self::Da|::T% */ { + lowered final self::Da /* = self::Da|::T% */ #this = it; + return #this; +} +static inline-class-member method Da|_#new#tearOff(dynamic it) → self::Da /* = self::Da|_#new#tearOff::T% */ + return self::Da|(it); +static inline-class-member method Db|(dynamic it) → self::Db /* = self::Db|::T? */ { + lowered final self::Db /* = self::Db|::T? */ #this = it; + return #this; +} +static inline-class-member method Db|_#new#tearOff(dynamic it) → self::Db /* = self::Db|_#new#tearOff::T? */ + return self::Db|(it); +static inline-class-member method Dc|(dynamic it) → self::Dc /* = self::Dc|::T? */ { + lowered final self::Dc /* = self::Dc|::T? */ #this = it; + return #this; +} +static inline-class-member method Dc|_#new#tearOff(dynamic it) → self::Dc /* = self::Dc|_#new#tearOff::T? */ + return self::Dc|(it); +static inline-class-member method E|(dynamic it) → self::E /* = core::int? */ { + lowered final self::E /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int? */ + return self::E|(it); +static inline-class-member method Fa|(dynamic it) → self::Fa /* = core::int? */ { + lowered final self::Fa /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method Fa|_#new#tearOff(dynamic it) → self::Fa /* = core::int? */ + return self::Fa|(it); +static inline-class-member method Fb|_#new#tearOff(dynamic it) → self::Fb /* = core::int? */ + return self::Fb|(it); +static inline-class-member method Fb|(dynamic it) → self::Fb /* = core::int? */ { + lowered final self::Fb /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method G|(dynamic it) → self::G /* = self::G|::T? */ { + lowered final self::G /* = self::G|::T? */ #this = it; + return #this; +} +static inline-class-member method G|_#new#tearOff(dynamic it) → self::G /* = self::G|_#new#tearOff::T? */ + return self::G|(it); +static inline-class-member method Ha|(dynamic it) → self::Ha /* = self::Ha|::T? */ { + lowered final self::Ha /* = self::Ha|::T? */ #this = it; + return #this; +} +static inline-class-member method Ha|_#new#tearOff(dynamic it) → self::Ha /* = self::Ha|_#new#tearOff::T? */ + return self::Ha|(it); +static inline-class-member method Hb|(dynamic it) → self::Hb /* = self::Hb|::T? */ { + lowered final self::Hb /* = self::Hb|::T? */ #this = it; + return #this; +} +static inline-class-member method Hb|_#new#tearOff(dynamic it) → self::Hb /* = self::Hb|_#new#tearOff::T? */ + return self::Hb|(it); +static inline-class-member method Hc|(dynamic it) → self::Hc /* = self::Hc|::T? */ { + lowered final self::Hc /* = self::Hc|::T? */ #this = it; + return #this; +} +static inline-class-member method Hc|_#new#tearOff(dynamic it) → self::Hc /* = self::Hc|_#new#tearOff::T? */ + return self::Hc|(it); +static inline-class-member method I|(dynamic it) → self::I /* = self::I|::T */ { + lowered final self::I /* = self::I|::T */ #this = it; + return #this; +} +static inline-class-member method I|_#new#tearOff(dynamic it) → self::I /* = self::I|_#new#tearOff::T */ + return self::I|(it); +static inline-class-member method Ja|(dynamic it) → self::Ja /* = self::Ja|::T */ { + lowered final self::Ja /* = self::Ja|::T */ #this = it; + return #this; +} +static inline-class-member method Ja|_#new#tearOff(dynamic it) → self::Ja /* = self::Ja|_#new#tearOff::T */ + return self::Ja|(it); +static inline-class-member method Jc|(dynamic it) → self::Jc /* = self::Jc|::T? */ { + lowered final self::Jc /* = self::Jc|::T? */ #this = it; + return #this; +} +static inline-class-member method Jc|_#new#tearOff(dynamic it) → self::Jc /* = self::Jc|_#new#tearOff::T? */ + return self::Jc|(it); +static inline-class-member method K|(dynamic it) → self::K /* = self::K|::T? */ { + lowered final self::K /* = self::K|::T? */ #this = it; + return #this; +} +static inline-class-member method K|_#new#tearOff(dynamic it) → self::K /* = self::K|_#new#tearOff::T? */ + return self::K|(it); +static inline-class-member method La|(dynamic it) → self::La /* = self::La|::T? */ { + lowered final self::La /* = self::La|::T? */ #this = it; + return #this; +} +static inline-class-member method La|_#new#tearOff(dynamic it) → self::La /* = self::La|_#new#tearOff::T? */ + return self::La|(it); +static inline-class-member method Lc|(dynamic it) → self::Lc /* = self::Lc|::T? */ { + lowered final self::Lc /* = self::Lc|::T? */ #this = it; + return #this; +} +static inline-class-member method Lc|_#new#tearOff(dynamic it) → self::Lc /* = self::Lc|_#new#tearOff::T? */ + return self::Lc|(it); +static method testA(Never n) → dynamic { + self::A /* = core::int */ a1 = n; + self::A? /* = core::int? */ a2 = n; +} +static method testBa(Never n) → dynamic { + self::Ba /* = core::int */ ba1 = n; + self::Ba? /* = core::int? */ ba2 = n; + self::Bb /* = core::int? */ bb3 = n; + self::Bb? /* = core::int? */ bb4 = n; +} +static method testC(Never n) → dynamic { + self::C /* = dynamic */ c1 = n; + self::C? /* = dynamic */ c2 = n; + self::C /* = core::int */ c3 = n; + self::C /* = core::int? */ c4 = n; + self::C? /* = core::int? */ c5 = n; + self::C? /* = core::int? */ c6 = n; + self::C /* = self::testC::S% */ c7 = n; + self::C? /* = self::testC::S? */ c8 = n; + self::C /* = self::testC::S? */ c9 = n; + self::C? /* = self::testC::S? */ c10 = n; + self::C /* = self::testC::U */ c11 = n; + self::C? /* = self::testC::U? */ c12 = n; + self::C /* = self::testC::U? */ c13 = n; + self::C? /* = self::testC::U? */ c14 = n; +} +static method testDa(Never n) → dynamic { + self::Da /* = dynamic */ da1 = n; + self::Da? /* = dynamic */ da2 = n; + self::Da /* = core::int */ da3 = n; + self::Da /* = core::int? */ da4 = n; + self::Da? /* = core::int? */ da5 = n; + self::Da? /* = core::int? */ da6 = n; + self::Da /* = self::testDa::S% */ da7 = n; + self::Da? /* = self::testDa::S? */ da8 = n; + self::Da /* = self::testDa::S? */ da9 = n; + self::Da? /* = self::testDa::S? */ da10 = n; + self::Da /* = self::testDa::U */ da11 = n; + self::Da? /* = self::testDa::U? */ da12 = n; + self::Da /* = self::testDa::U? */ da13 = n; + self::Da? /* = self::testDa::U? */ da14 = n; +} +static method testDb(Never n) → dynamic { + self::Db /* = dynamic */ db1 = n; + self::Db? /* = dynamic */ db2 = n; + self::Db /* = core::int? */ db3 = n; + self::Db /* = core::int? */ db4 = n; + self::Db? /* = core::int? */ db5 = n; + self::Db? /* = core::int? */ db6 = n; + self::Db /* = self::testDb::S? */ db7 = n; + self::Db? /* = self::testDb::S? */ db8 = n; + self::Db /* = self::testDb::S? */ db9 = n; + self::Db? /* = self::testDb::S? */ db10 = n; + self::Db /* = self::testDb::U? */ db11 = n; + self::Db? /* = self::testDb::U? */ db12 = n; + self::Db /* = self::testDb::U? */ db13 = n; + self::Db? /* = self::testDb::U? */ db14 = n; +} +static method testDc(Never n) → dynamic { + self::Dc /* = dynamic */ dc1 = n; + self::Dc? /* = dynamic */ dc2 = n; + self::Dc /* = core::int? */ dc3 = n; + self::Dc /* = core::int? */ dc4 = n; + self::Dc? /* = core::int? */ dc5 = n; + self::Dc? /* = core::int? */ dc6 = n; + self::Dc /* = self::testDc::S? */ dc7 = n; + self::Dc? /* = self::testDc::S? */ dc8 = n; + self::Dc /* = self::testDc::S? */ dc9 = n; + self::Dc? /* = self::testDc::S? */ dc10 = n; + self::Dc /* = self::testDc::U? */ dc11 = n; + self::Dc? /* = self::testDc::U? */ dc12 = n; + self::Dc /* = self::testDc::U? */ dc13 = n; + self::Dc? /* = self::testDc::U? */ dc14 = n; +} +static method testE(Never n) → dynamic { + self::E /* = core::int? */ e1 = n; + self::E? /* = core::int? */ e2 = n; +} +static method testF(Never n) → dynamic { + self::Fa /* = core::int? */ fa1 = n; + self::Fa? /* = core::int? */ fa2 = n; + self::Fb /* = core::int? */ fb3 = n; + self::Fb? /* = core::int? */ fb4 = n; +} +static method testG(Never n) → dynamic { + self::G /* = dynamic */ g1 = n; + self::G? /* = dynamic */ g2 = n; + self::G /* = core::int? */ g3 = n; + self::G /* = core::int? */ g4 = n; + self::G? /* = core::int? */ g5 = n; + self::G? /* = core::int? */ g6 = n; + self::G /* = self::testG::S? */ g7 = n; + self::G? /* = self::testG::S? */ g8 = n; + self::G /* = self::testG::S? */ g9 = n; + self::G? /* = self::testG::S? */ g10 = n; + self::G /* = self::testG::U? */ g11 = n; + self::G? /* = self::testG::U? */ g12 = n; + self::G /* = self::testG::U? */ g13 = n; + self::G? /* = self::testG::U? */ g14 = n; +} +static method testHa(Never n) → dynamic { + self::Ha /* = dynamic */ ha1 = n; + self::Ha? /* = dynamic */ ha2 = n; + self::Ha /* = core::int? */ ha3 = n; + self::Ha /* = core::int? */ ha4 = n; + self::Ha? /* = core::int? */ ha5 = n; + self::Ha? /* = core::int? */ ha6 = n; + self::Ha /* = self::testHa::S? */ ha7 = n; + self::Ha? /* = self::testHa::S? */ ha8 = n; + self::Ha /* = self::testHa::S? */ ha9 = n; + self::Ha? /* = self::testHa::S? */ ha10 = n; + self::Ha /* = self::testHa::U? */ ha11 = n; + self::Ha? /* = self::testHa::U? */ ha12 = n; + self::Ha /* = self::testHa::U? */ ha13 = n; + self::Ha? /* = self::testHa::U? */ ha14 = n; +} +static method testHb(Never n) → dynamic { + self::Hb /* = dynamic */ hb1 = n; + self::Hb? /* = dynamic */ hb2 = n; + self::Hb /* = core::int? */ hb3 = n; + self::Hb /* = core::int? */ hb4 = n; + self::Hb? /* = core::int? */ hb5 = n; + self::Hb? /* = core::int? */ hb6 = n; + self::Hb /* = self::testHb::S? */ hb7 = n; + self::Hb? /* = self::testHb::S? */ hb8 = n; + self::Hb /* = self::testHb::S? */ hb9 = n; + self::Hb? /* = self::testHb::S? */ hb10 = n; + self::Hb /* = self::testHb::U? */ hb11 = n; + self::Hb? /* = self::testHb::U? */ hb12 = n; + self::Hb /* = self::testHb::U? */ hb13 = n; + self::Hb? /* = self::testHb::U? */ hb14 = n; +} +static method testHc(Never n) → dynamic { + self::Hc /* = dynamic */ hc1 = n; + self::Hc? /* = dynamic */ hc2 = n; + self::Hc /* = core::int? */ hc3 = n; + self::Hc /* = core::int? */ hc4 = n; + self::Hc? /* = core::int? */ hc5 = n; + self::Hc? /* = core::int? */ hc6 = n; + self::Hc /* = self::testHc::S? */ hc7 = n; + self::Hc? /* = self::testHc::S? */ hc8 = n; + self::Hc /* = self::testHc::S? */ hc9 = n; + self::Hc? /* = self::testHc::S? */ hc10 = n; + self::Hc /* = self::testHc::U? */ hc11 = n; + self::Hc? /* = self::testHc::U? */ hc12 = n; + self::Hc /* = self::testHc::U? */ hc13 = n; + self::Hc? /* = self::testHc::U? */ hc14 = n; +} +static method testI(Never n) → dynamic { + self::I /* = core::Object */ i1 = n; + self::I? /* = core::Object? */ i2 = n; + self::I /* = core::int */ i3 = n; + self::I? /* = core::int? */ i5 = n; + self::I /* = self::testI::U */ i11 = n; + self::I? /* = self::testI::U? */ i12 = n; +} +static method testJa(Never n) → dynamic { + self::Ja /* = core::Object */ ja1 = n; + self::Ja? /* = core::Object? */ ja2 = n; + self::Ja /* = core::int */ ja3 = n; + self::Ja? /* = core::int? */ ja5 = n; + self::Ja /* = self::testJa::U */ ja11 = n; + self::Ja? /* = self::testJa::U? */ ja12 = n; +} +static method testJc(Never n) → dynamic { + self::Jc /* = core::Object? */ jc1 = n; + self::Jc? /* = core::Object? */ jc2 = n; + self::Jc /* = core::int? */ jc3 = n; + self::Jc? /* = core::int? */ jc5 = n; + self::Jc /* = self::testJc::U? */ jc11 = n; + self::Jc? /* = self::testJc::U? */ jc12 = n; +} +static method testK(Never n) → dynamic { + self::K /* = core::Object? */ k1 = n; + self::K? /* = core::Object? */ k2 = n; + self::K /* = core::int? */ k3 = n; + self::K? /* = core::int? */ k5 = n; + self::K /* = self::testK::U? */ k11 = n; + self::K? /* = self::testK::U? */ k12 = n; +} +static method testLa(Never n) → dynamic { + self::La /* = core::Object? */ la1 = n; + self::La? /* = core::Object? */ la2 = n; + self::La /* = core::int? */ la3 = n; + self::La? /* = core::int? */ la5 = n; + self::La /* = self::testLa::U? */ la11 = n; + self::La? /* = self::testLa::U? */ la12 = n; +} +static method testLc(Never n) → dynamic { + self::Lc /* = core::Object? */ lc1 = n; + self::Lc? /* = core::Object? */ lc2 = n; + self::Lc /* = core::int? */ lc3 = n; + self::Lc? /* = core::int? */ lc5 = n; + self::Lc /* = self::testLc::U? */ lc11 = n; + self::Lc? /* = self::testLc::U? */ lc12 = n; +} diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.textual_outline.expect b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.textual_outline.expect new file mode 100644 index 00000000000..4779297254d --- /dev/null +++ b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.textual_outline.expect @@ -0,0 +1,19 @@ +extension type A(int it) {} extension type Ba(A it) {} extension type Bb(A? it) {} extension type C(T it) {} extension type Da(C it) {} extension type Db(C it) {} extension type Dc(C? it) {} extension type E(int? it) {} extension type Fa(E it) {} extension type Fb(E? it) {} extension type G(T? it) {} extension type Ha(G it) {} extension type Hb(G it) {} extension type Hc(G? it) {} extension type I(T it) {} extension type Ja(I it) {} extension type Jc(I? it) {} extension type K(T? it) {} extension type La(K it) {} extension type Lc(K? it) {} +testA(Never n) {} +testBa(Never n) {} +testC(Never n) {} +testDa(Never n) {} +testDb(Never n) {} +testDc(Never n) {} +testE(Never n) {} +testF(Never n) {} +testG(Never n) {} +testHa(Never n) {} +testHb(Never n) {} +testHc(Never n) {} +testI(Never n) {} +testJa(Never n) {} +testJc(Never n) {} +testK(Never n) {} +testLa(Never n) {} +testLc(Never n) {} diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.expect new file mode 100644 index 00000000000..22240934913 --- /dev/null +++ b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.expect @@ -0,0 +1,401 @@ +library; +import self as self; +import "dart:core" as core; +import "dart:_internal" as _in; + +extension type A(core::int it) { + constructor • = self::A|; + tearoff • = self::A|_#new#tearOff; +} +extension type Ba(self::A /* = core::int */ it) { + constructor • = self::Ba|; + tearoff • = self::Ba|_#new#tearOff; +} +extension type Bb(self::A? /* = core::int? */ it) { + constructor • = self::Bb|; + tearoff • = self::Bb|_#new#tearOff; +} +extension type C(T% it) { + constructor • = self::C|; + tearoff • = self::C|_#new#tearOff; +} +extension type Da(self::C /* = T% */ it) { + constructor • = self::Da|; + tearoff • = self::Da|_#new#tearOff; +} +extension type Db(self::C /* = T? */ it) { + constructor • = self::Db|; + tearoff • = self::Db|_#new#tearOff; +} +extension type Dc(self::C? /* = T? */ it) { + constructor • = self::Dc|; + tearoff • = self::Dc|_#new#tearOff; +} +extension type E(core::int? it) { + constructor • = self::E|; + tearoff • = self::E|_#new#tearOff; +} +extension type Fa(self::E /* = core::int? */ it) { + constructor • = self::Fa|; + tearoff • = self::Fa|_#new#tearOff; +} +extension type Fb(self::E? /* = core::int? */ it) { + constructor • = self::Fb|; + tearoff • = self::Fb|_#new#tearOff; +} +extension type G(T? it) { + constructor • = self::G|; + tearoff • = self::G|_#new#tearOff; +} +extension type Ha(self::G /* = T? */ it) { + constructor • = self::Ha|; + tearoff • = self::Ha|_#new#tearOff; +} +extension type Hb(self::G /* = T? */ it) { + constructor • = self::Hb|; + tearoff • = self::Hb|_#new#tearOff; +} +extension type Hc(self::G? /* = T? */ it) { + constructor • = self::Hc|; + tearoff • = self::Hc|_#new#tearOff; +} +extension type I(T it) { + constructor • = self::I|; + tearoff • = self::I|_#new#tearOff; +} +extension type Ja(self::I /* = T */ it) { + constructor • = self::Ja|; + tearoff • = self::Ja|_#new#tearOff; +} +extension type Jc(self::I? /* = T? */ it) { + constructor • = self::Jc|; + tearoff • = self::Jc|_#new#tearOff; +} +extension type K(T? it) { + constructor • = self::K|; + tearoff • = self::K|_#new#tearOff; +} +extension type La(self::K /* = T? */ it) { + constructor • = self::La|; + tearoff • = self::La|_#new#tearOff; +} +extension type Lc(self::K? /* = T? */ it) { + constructor • = self::Lc|; + tearoff • = self::Lc|_#new#tearOff; +} +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; + return #this; +} +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ + return self::A|(it); +static inline-class-member method Ba|(dynamic it) → self::Ba /* = core::int */ { + lowered final self::Ba /* = core::int */ #this = it; + return #this; +} +static inline-class-member method Ba|_#new#tearOff(dynamic it) → self::Ba /* = core::int */ + return self::Ba|(it); +static inline-class-member method Bb|(dynamic it) → self::Bb /* = core::int? */ { + lowered final self::Bb /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method Bb|_#new#tearOff(dynamic it) → self::Bb /* = core::int? */ + return self::Bb|(it); +static inline-class-member method C|(dynamic it) → self::C /* = self::C|::T% */ { + lowered final self::C /* = self::C|::T% */ #this = it; + return #this; +} +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::C|_#new#tearOff::T% */ + return self::C|(it); +static inline-class-member method Da|(dynamic it) → self::Da /* = self::Da|::T% */ { + lowered final self::Da /* = self::Da|::T% */ #this = it; + return #this; +} +static inline-class-member method Da|_#new#tearOff(dynamic it) → self::Da /* = self::Da|_#new#tearOff::T% */ + return self::Da|(it); +static inline-class-member method Db|(dynamic it) → self::Db /* = self::Db|::T? */ { + lowered final self::Db /* = self::Db|::T? */ #this = it; + return #this; +} +static inline-class-member method Db|_#new#tearOff(dynamic it) → self::Db /* = self::Db|_#new#tearOff::T? */ + return self::Db|(it); +static inline-class-member method Dc|(dynamic it) → self::Dc /* = self::Dc|::T? */ { + lowered final self::Dc /* = self::Dc|::T? */ #this = it; + return #this; +} +static inline-class-member method Dc|_#new#tearOff(dynamic it) → self::Dc /* = self::Dc|_#new#tearOff::T? */ + return self::Dc|(it); +static inline-class-member method E|(dynamic it) → self::E /* = core::int? */ { + lowered final self::E /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int? */ + return self::E|(it); +static inline-class-member method Fa|(dynamic it) → self::Fa /* = core::int? */ { + lowered final self::Fa /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method Fa|_#new#tearOff(dynamic it) → self::Fa /* = core::int? */ + return self::Fa|(it); +static inline-class-member method Fb|_#new#tearOff(dynamic it) → self::Fb /* = core::int? */ + return self::Fb|(it); +static inline-class-member method Fb|(dynamic it) → self::Fb /* = core::int? */ { + lowered final self::Fb /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method G|(dynamic it) → self::G /* = self::G|::T? */ { + lowered final self::G /* = self::G|::T? */ #this = it; + return #this; +} +static inline-class-member method G|_#new#tearOff(dynamic it) → self::G /* = self::G|_#new#tearOff::T? */ + return self::G|(it); +static inline-class-member method Ha|(dynamic it) → self::Ha /* = self::Ha|::T? */ { + lowered final self::Ha /* = self::Ha|::T? */ #this = it; + return #this; +} +static inline-class-member method Ha|_#new#tearOff(dynamic it) → self::Ha /* = self::Ha|_#new#tearOff::T? */ + return self::Ha|(it); +static inline-class-member method Hb|(dynamic it) → self::Hb /* = self::Hb|::T? */ { + lowered final self::Hb /* = self::Hb|::T? */ #this = it; + return #this; +} +static inline-class-member method Hb|_#new#tearOff(dynamic it) → self::Hb /* = self::Hb|_#new#tearOff::T? */ + return self::Hb|(it); +static inline-class-member method Hc|(dynamic it) → self::Hc /* = self::Hc|::T? */ { + lowered final self::Hc /* = self::Hc|::T? */ #this = it; + return #this; +} +static inline-class-member method Hc|_#new#tearOff(dynamic it) → self::Hc /* = self::Hc|_#new#tearOff::T? */ + return self::Hc|(it); +static inline-class-member method I|(dynamic it) → self::I /* = self::I|::T */ { + lowered final self::I /* = self::I|::T */ #this = it; + return #this; +} +static inline-class-member method I|_#new#tearOff(dynamic it) → self::I /* = self::I|_#new#tearOff::T */ + return self::I|(it); +static inline-class-member method Ja|(dynamic it) → self::Ja /* = self::Ja|::T */ { + lowered final self::Ja /* = self::Ja|::T */ #this = it; + return #this; +} +static inline-class-member method Ja|_#new#tearOff(dynamic it) → self::Ja /* = self::Ja|_#new#tearOff::T */ + return self::Ja|(it); +static inline-class-member method Jc|(dynamic it) → self::Jc /* = self::Jc|::T? */ { + lowered final self::Jc /* = self::Jc|::T? */ #this = it; + return #this; +} +static inline-class-member method Jc|_#new#tearOff(dynamic it) → self::Jc /* = self::Jc|_#new#tearOff::T? */ + return self::Jc|(it); +static inline-class-member method K|(dynamic it) → self::K /* = self::K|::T? */ { + lowered final self::K /* = self::K|::T? */ #this = it; + return #this; +} +static inline-class-member method K|_#new#tearOff(dynamic it) → self::K /* = self::K|_#new#tearOff::T? */ + return self::K|(it); +static inline-class-member method La|(dynamic it) → self::La /* = self::La|::T? */ { + lowered final self::La /* = self::La|::T? */ #this = it; + return #this; +} +static inline-class-member method La|_#new#tearOff(dynamic it) → self::La /* = self::La|_#new#tearOff::T? */ + return self::La|(it); +static inline-class-member method Lc|(dynamic it) → self::Lc /* = self::Lc|::T? */ { + lowered final self::Lc /* = self::Lc|::T? */ #this = it; + return #this; +} +static inline-class-member method Lc|_#new#tearOff(dynamic it) → self::Lc /* = self::Lc|_#new#tearOff::T? */ + return self::Lc|(it); +static method testA(Never n) → dynamic { + self::A /* = core::int */ a1 = let final Never #t1 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::A? /* = core::int? */ a2 = let final Never #t2 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testBa(Never n) → dynamic { + self::Ba /* = core::int */ ba1 = let final Never #t3 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ba? /* = core::int? */ ba2 = let final Never #t4 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Bb /* = core::int? */ bb3 = let final Never #t5 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Bb? /* = core::int? */ bb4 = let final Never #t6 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testC(Never n) → dynamic { + self::C /* = dynamic */ c1 = let final Never #t7 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = dynamic */ c2 = let final Never #t8 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = core::int */ c3 = let final Never #t9 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = core::int? */ c4 = let final Never #t10 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = core::int? */ c5 = let final Never #t11 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = core::int? */ c6 = let final Never #t12 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::S% */ c7 = let final Never #t13 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::S? */ c8 = let final Never #t14 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::S? */ c9 = let final Never #t15 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::S? */ c10 = let final Never #t16 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::U */ c11 = let final Never #t17 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::U? */ c12 = let final Never #t18 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::U? */ c13 = let final Never #t19 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::U? */ c14 = let final Never #t20 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testDa(Never n) → dynamic { + self::Da /* = dynamic */ da1 = let final Never #t21 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = dynamic */ da2 = let final Never #t22 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = core::int */ da3 = let final Never #t23 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = core::int? */ da4 = let final Never #t24 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = core::int? */ da5 = let final Never #t25 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = core::int? */ da6 = let final Never #t26 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::S% */ da7 = let final Never #t27 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::S? */ da8 = let final Never #t28 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::S? */ da9 = let final Never #t29 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::S? */ da10 = let final Never #t30 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::U */ da11 = let final Never #t31 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::U? */ da12 = let final Never #t32 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::U? */ da13 = let final Never #t33 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::U? */ da14 = let final Never #t34 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testDb(Never n) → dynamic { + self::Db /* = dynamic */ db1 = let final Never #t35 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = dynamic */ db2 = let final Never #t36 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = core::int? */ db3 = let final Never #t37 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = core::int? */ db4 = let final Never #t38 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = core::int? */ db5 = let final Never #t39 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = core::int? */ db6 = let final Never #t40 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::S? */ db7 = let final Never #t41 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::S? */ db8 = let final Never #t42 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::S? */ db9 = let final Never #t43 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::S? */ db10 = let final Never #t44 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::U? */ db11 = let final Never #t45 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::U? */ db12 = let final Never #t46 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::U? */ db13 = let final Never #t47 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::U? */ db14 = let final Never #t48 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testDc(Never n) → dynamic { + self::Dc /* = dynamic */ dc1 = let final Never #t49 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = dynamic */ dc2 = let final Never #t50 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = core::int? */ dc3 = let final Never #t51 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = core::int? */ dc4 = let final Never #t52 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = core::int? */ dc5 = let final Never #t53 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = core::int? */ dc6 = let final Never #t54 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::S? */ dc7 = let final Never #t55 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::S? */ dc8 = let final Never #t56 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::S? */ dc9 = let final Never #t57 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::S? */ dc10 = let final Never #t58 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::U? */ dc11 = let final Never #t59 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::U? */ dc12 = let final Never #t60 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::U? */ dc13 = let final Never #t61 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::U? */ dc14 = let final Never #t62 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testE(Never n) → dynamic { + self::E /* = core::int? */ e1 = let final Never #t63 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::E? /* = core::int? */ e2 = let final Never #t64 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testF(Never n) → dynamic { + self::Fa /* = core::int? */ fa1 = let final Never #t65 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Fa? /* = core::int? */ fa2 = let final Never #t66 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Fb /* = core::int? */ fb3 = let final Never #t67 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Fb? /* = core::int? */ fb4 = let final Never #t68 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testG(Never n) → dynamic { + self::G /* = dynamic */ g1 = let final Never #t69 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = dynamic */ g2 = let final Never #t70 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = core::int? */ g3 = let final Never #t71 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = core::int? */ g4 = let final Never #t72 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = core::int? */ g5 = let final Never #t73 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = core::int? */ g6 = let final Never #t74 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::S? */ g7 = let final Never #t75 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::S? */ g8 = let final Never #t76 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::S? */ g9 = let final Never #t77 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::S? */ g10 = let final Never #t78 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::U? */ g11 = let final Never #t79 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::U? */ g12 = let final Never #t80 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::U? */ g13 = let final Never #t81 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::U? */ g14 = let final Never #t82 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testHa(Never n) → dynamic { + self::Ha /* = dynamic */ ha1 = let final Never #t83 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = dynamic */ ha2 = let final Never #t84 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = core::int? */ ha3 = let final Never #t85 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = core::int? */ ha4 = let final Never #t86 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = core::int? */ ha5 = let final Never #t87 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = core::int? */ ha6 = let final Never #t88 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::S? */ ha7 = let final Never #t89 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::S? */ ha8 = let final Never #t90 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::S? */ ha9 = let final Never #t91 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::S? */ ha10 = let final Never #t92 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::U? */ ha11 = let final Never #t93 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::U? */ ha12 = let final Never #t94 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::U? */ ha13 = let final Never #t95 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::U? */ ha14 = let final Never #t96 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testHb(Never n) → dynamic { + self::Hb /* = dynamic */ hb1 = let final Never #t97 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = dynamic */ hb2 = let final Never #t98 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = core::int? */ hb3 = let final Never #t99 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = core::int? */ hb4 = let final Never #t100 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = core::int? */ hb5 = let final Never #t101 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = core::int? */ hb6 = let final Never #t102 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::S? */ hb7 = let final Never #t103 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::S? */ hb8 = let final Never #t104 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::S? */ hb9 = let final Never #t105 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::S? */ hb10 = let final Never #t106 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::U? */ hb11 = let final Never #t107 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::U? */ hb12 = let final Never #t108 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::U? */ hb13 = let final Never #t109 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::U? */ hb14 = let final Never #t110 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testHc(Never n) → dynamic { + self::Hc /* = dynamic */ hc1 = let final Never #t111 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = dynamic */ hc2 = let final Never #t112 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = core::int? */ hc3 = let final Never #t113 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = core::int? */ hc4 = let final Never #t114 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = core::int? */ hc5 = let final Never #t115 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = core::int? */ hc6 = let final Never #t116 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::S? */ hc7 = let final Never #t117 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::S? */ hc8 = let final Never #t118 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::S? */ hc9 = let final Never #t119 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::S? */ hc10 = let final Never #t120 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::U? */ hc11 = let final Never #t121 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::U? */ hc12 = let final Never #t122 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::U? */ hc13 = let final Never #t123 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::U? */ hc14 = let final Never #t124 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testI(Never n) → dynamic { + self::I /* = core::Object */ i1 = let final Never #t125 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I? /* = core::Object? */ i2 = let final Never #t126 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I /* = core::int */ i3 = let final Never #t127 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I? /* = core::int? */ i5 = let final Never #t128 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I /* = self::testI::U */ i11 = let final Never #t129 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I? /* = self::testI::U? */ i12 = let final Never #t130 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testJa(Never n) → dynamic { + self::Ja /* = core::Object */ ja1 = let final Never #t131 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja? /* = core::Object? */ ja2 = let final Never #t132 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja /* = core::int */ ja3 = let final Never #t133 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja? /* = core::int? */ ja5 = let final Never #t134 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja /* = self::testJa::U */ ja11 = let final Never #t135 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja? /* = self::testJa::U? */ ja12 = let final Never #t136 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testJc(Never n) → dynamic { + self::Jc /* = core::Object? */ jc1 = let final Never #t137 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc? /* = core::Object? */ jc2 = let final Never #t138 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc /* = core::int? */ jc3 = let final Never #t139 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc? /* = core::int? */ jc5 = let final Never #t140 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc /* = self::testJc::U? */ jc11 = let final Never #t141 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc? /* = self::testJc::U? */ jc12 = let final Never #t142 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testK(Never n) → dynamic { + self::K /* = core::Object? */ k1 = let final Never #t143 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K? /* = core::Object? */ k2 = let final Never #t144 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K /* = core::int? */ k3 = let final Never #t145 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K? /* = core::int? */ k5 = let final Never #t146 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K /* = self::testK::U? */ k11 = let final Never #t147 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K? /* = self::testK::U? */ k12 = let final Never #t148 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testLa(Never n) → dynamic { + self::La /* = core::Object? */ la1 = let final Never #t149 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La? /* = core::Object? */ la2 = let final Never #t150 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La /* = core::int? */ la3 = let final Never #t151 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La? /* = core::int? */ la5 = let final Never #t152 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La /* = self::testLa::U? */ la11 = let final Never #t153 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La? /* = self::testLa::U? */ la12 = let final Never #t154 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testLc(Never n) → dynamic { + self::Lc /* = core::Object? */ lc1 = let final Never #t155 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc? /* = core::Object? */ lc2 = let final Never #t156 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc /* = core::int? */ lc3 = let final Never #t157 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc? /* = core::int? */ lc5 = let final Never #t158 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc /* = self::testLc::U? */ lc11 = let final Never #t159 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc? /* = self::testLc::U? */ lc12 = let final Never #t160 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.modular.expect new file mode 100644 index 00000000000..22240934913 --- /dev/null +++ b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.modular.expect @@ -0,0 +1,401 @@ +library; +import self as self; +import "dart:core" as core; +import "dart:_internal" as _in; + +extension type A(core::int it) { + constructor • = self::A|; + tearoff • = self::A|_#new#tearOff; +} +extension type Ba(self::A /* = core::int */ it) { + constructor • = self::Ba|; + tearoff • = self::Ba|_#new#tearOff; +} +extension type Bb(self::A? /* = core::int? */ it) { + constructor • = self::Bb|; + tearoff • = self::Bb|_#new#tearOff; +} +extension type C(T% it) { + constructor • = self::C|; + tearoff • = self::C|_#new#tearOff; +} +extension type Da(self::C /* = T% */ it) { + constructor • = self::Da|; + tearoff • = self::Da|_#new#tearOff; +} +extension type Db(self::C /* = T? */ it) { + constructor • = self::Db|; + tearoff • = self::Db|_#new#tearOff; +} +extension type Dc(self::C? /* = T? */ it) { + constructor • = self::Dc|; + tearoff • = self::Dc|_#new#tearOff; +} +extension type E(core::int? it) { + constructor • = self::E|; + tearoff • = self::E|_#new#tearOff; +} +extension type Fa(self::E /* = core::int? */ it) { + constructor • = self::Fa|; + tearoff • = self::Fa|_#new#tearOff; +} +extension type Fb(self::E? /* = core::int? */ it) { + constructor • = self::Fb|; + tearoff • = self::Fb|_#new#tearOff; +} +extension type G(T? it) { + constructor • = self::G|; + tearoff • = self::G|_#new#tearOff; +} +extension type Ha(self::G /* = T? */ it) { + constructor • = self::Ha|; + tearoff • = self::Ha|_#new#tearOff; +} +extension type Hb(self::G /* = T? */ it) { + constructor • = self::Hb|; + tearoff • = self::Hb|_#new#tearOff; +} +extension type Hc(self::G? /* = T? */ it) { + constructor • = self::Hc|; + tearoff • = self::Hc|_#new#tearOff; +} +extension type I(T it) { + constructor • = self::I|; + tearoff • = self::I|_#new#tearOff; +} +extension type Ja(self::I /* = T */ it) { + constructor • = self::Ja|; + tearoff • = self::Ja|_#new#tearOff; +} +extension type Jc(self::I? /* = T? */ it) { + constructor • = self::Jc|; + tearoff • = self::Jc|_#new#tearOff; +} +extension type K(T? it) { + constructor • = self::K|; + tearoff • = self::K|_#new#tearOff; +} +extension type La(self::K /* = T? */ it) { + constructor • = self::La|; + tearoff • = self::La|_#new#tearOff; +} +extension type Lc(self::K? /* = T? */ it) { + constructor • = self::Lc|; + tearoff • = self::Lc|_#new#tearOff; +} +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; + return #this; +} +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ + return self::A|(it); +static inline-class-member method Ba|(dynamic it) → self::Ba /* = core::int */ { + lowered final self::Ba /* = core::int */ #this = it; + return #this; +} +static inline-class-member method Ba|_#new#tearOff(dynamic it) → self::Ba /* = core::int */ + return self::Ba|(it); +static inline-class-member method Bb|(dynamic it) → self::Bb /* = core::int? */ { + lowered final self::Bb /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method Bb|_#new#tearOff(dynamic it) → self::Bb /* = core::int? */ + return self::Bb|(it); +static inline-class-member method C|(dynamic it) → self::C /* = self::C|::T% */ { + lowered final self::C /* = self::C|::T% */ #this = it; + return #this; +} +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::C|_#new#tearOff::T% */ + return self::C|(it); +static inline-class-member method Da|(dynamic it) → self::Da /* = self::Da|::T% */ { + lowered final self::Da /* = self::Da|::T% */ #this = it; + return #this; +} +static inline-class-member method Da|_#new#tearOff(dynamic it) → self::Da /* = self::Da|_#new#tearOff::T% */ + return self::Da|(it); +static inline-class-member method Db|(dynamic it) → self::Db /* = self::Db|::T? */ { + lowered final self::Db /* = self::Db|::T? */ #this = it; + return #this; +} +static inline-class-member method Db|_#new#tearOff(dynamic it) → self::Db /* = self::Db|_#new#tearOff::T? */ + return self::Db|(it); +static inline-class-member method Dc|(dynamic it) → self::Dc /* = self::Dc|::T? */ { + lowered final self::Dc /* = self::Dc|::T? */ #this = it; + return #this; +} +static inline-class-member method Dc|_#new#tearOff(dynamic it) → self::Dc /* = self::Dc|_#new#tearOff::T? */ + return self::Dc|(it); +static inline-class-member method E|(dynamic it) → self::E /* = core::int? */ { + lowered final self::E /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int? */ + return self::E|(it); +static inline-class-member method Fa|(dynamic it) → self::Fa /* = core::int? */ { + lowered final self::Fa /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method Fa|_#new#tearOff(dynamic it) → self::Fa /* = core::int? */ + return self::Fa|(it); +static inline-class-member method Fb|_#new#tearOff(dynamic it) → self::Fb /* = core::int? */ + return self::Fb|(it); +static inline-class-member method Fb|(dynamic it) → self::Fb /* = core::int? */ { + lowered final self::Fb /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method G|(dynamic it) → self::G /* = self::G|::T? */ { + lowered final self::G /* = self::G|::T? */ #this = it; + return #this; +} +static inline-class-member method G|_#new#tearOff(dynamic it) → self::G /* = self::G|_#new#tearOff::T? */ + return self::G|(it); +static inline-class-member method Ha|(dynamic it) → self::Ha /* = self::Ha|::T? */ { + lowered final self::Ha /* = self::Ha|::T? */ #this = it; + return #this; +} +static inline-class-member method Ha|_#new#tearOff(dynamic it) → self::Ha /* = self::Ha|_#new#tearOff::T? */ + return self::Ha|(it); +static inline-class-member method Hb|(dynamic it) → self::Hb /* = self::Hb|::T? */ { + lowered final self::Hb /* = self::Hb|::T? */ #this = it; + return #this; +} +static inline-class-member method Hb|_#new#tearOff(dynamic it) → self::Hb /* = self::Hb|_#new#tearOff::T? */ + return self::Hb|(it); +static inline-class-member method Hc|(dynamic it) → self::Hc /* = self::Hc|::T? */ { + lowered final self::Hc /* = self::Hc|::T? */ #this = it; + return #this; +} +static inline-class-member method Hc|_#new#tearOff(dynamic it) → self::Hc /* = self::Hc|_#new#tearOff::T? */ + return self::Hc|(it); +static inline-class-member method I|(dynamic it) → self::I /* = self::I|::T */ { + lowered final self::I /* = self::I|::T */ #this = it; + return #this; +} +static inline-class-member method I|_#new#tearOff(dynamic it) → self::I /* = self::I|_#new#tearOff::T */ + return self::I|(it); +static inline-class-member method Ja|(dynamic it) → self::Ja /* = self::Ja|::T */ { + lowered final self::Ja /* = self::Ja|::T */ #this = it; + return #this; +} +static inline-class-member method Ja|_#new#tearOff(dynamic it) → self::Ja /* = self::Ja|_#new#tearOff::T */ + return self::Ja|(it); +static inline-class-member method Jc|(dynamic it) → self::Jc /* = self::Jc|::T? */ { + lowered final self::Jc /* = self::Jc|::T? */ #this = it; + return #this; +} +static inline-class-member method Jc|_#new#tearOff(dynamic it) → self::Jc /* = self::Jc|_#new#tearOff::T? */ + return self::Jc|(it); +static inline-class-member method K|(dynamic it) → self::K /* = self::K|::T? */ { + lowered final self::K /* = self::K|::T? */ #this = it; + return #this; +} +static inline-class-member method K|_#new#tearOff(dynamic it) → self::K /* = self::K|_#new#tearOff::T? */ + return self::K|(it); +static inline-class-member method La|(dynamic it) → self::La /* = self::La|::T? */ { + lowered final self::La /* = self::La|::T? */ #this = it; + return #this; +} +static inline-class-member method La|_#new#tearOff(dynamic it) → self::La /* = self::La|_#new#tearOff::T? */ + return self::La|(it); +static inline-class-member method Lc|(dynamic it) → self::Lc /* = self::Lc|::T? */ { + lowered final self::Lc /* = self::Lc|::T? */ #this = it; + return #this; +} +static inline-class-member method Lc|_#new#tearOff(dynamic it) → self::Lc /* = self::Lc|_#new#tearOff::T? */ + return self::Lc|(it); +static method testA(Never n) → dynamic { + self::A /* = core::int */ a1 = let final Never #t1 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::A? /* = core::int? */ a2 = let final Never #t2 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testBa(Never n) → dynamic { + self::Ba /* = core::int */ ba1 = let final Never #t3 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ba? /* = core::int? */ ba2 = let final Never #t4 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Bb /* = core::int? */ bb3 = let final Never #t5 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Bb? /* = core::int? */ bb4 = let final Never #t6 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testC(Never n) → dynamic { + self::C /* = dynamic */ c1 = let final Never #t7 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = dynamic */ c2 = let final Never #t8 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = core::int */ c3 = let final Never #t9 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = core::int? */ c4 = let final Never #t10 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = core::int? */ c5 = let final Never #t11 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = core::int? */ c6 = let final Never #t12 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::S% */ c7 = let final Never #t13 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::S? */ c8 = let final Never #t14 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::S? */ c9 = let final Never #t15 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::S? */ c10 = let final Never #t16 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::U */ c11 = let final Never #t17 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::U? */ c12 = let final Never #t18 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::U? */ c13 = let final Never #t19 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::U? */ c14 = let final Never #t20 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testDa(Never n) → dynamic { + self::Da /* = dynamic */ da1 = let final Never #t21 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = dynamic */ da2 = let final Never #t22 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = core::int */ da3 = let final Never #t23 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = core::int? */ da4 = let final Never #t24 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = core::int? */ da5 = let final Never #t25 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = core::int? */ da6 = let final Never #t26 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::S% */ da7 = let final Never #t27 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::S? */ da8 = let final Never #t28 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::S? */ da9 = let final Never #t29 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::S? */ da10 = let final Never #t30 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::U */ da11 = let final Never #t31 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::U? */ da12 = let final Never #t32 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::U? */ da13 = let final Never #t33 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::U? */ da14 = let final Never #t34 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testDb(Never n) → dynamic { + self::Db /* = dynamic */ db1 = let final Never #t35 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = dynamic */ db2 = let final Never #t36 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = core::int? */ db3 = let final Never #t37 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = core::int? */ db4 = let final Never #t38 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = core::int? */ db5 = let final Never #t39 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = core::int? */ db6 = let final Never #t40 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::S? */ db7 = let final Never #t41 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::S? */ db8 = let final Never #t42 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::S? */ db9 = let final Never #t43 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::S? */ db10 = let final Never #t44 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::U? */ db11 = let final Never #t45 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::U? */ db12 = let final Never #t46 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::U? */ db13 = let final Never #t47 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::U? */ db14 = let final Never #t48 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testDc(Never n) → dynamic { + self::Dc /* = dynamic */ dc1 = let final Never #t49 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = dynamic */ dc2 = let final Never #t50 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = core::int? */ dc3 = let final Never #t51 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = core::int? */ dc4 = let final Never #t52 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = core::int? */ dc5 = let final Never #t53 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = core::int? */ dc6 = let final Never #t54 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::S? */ dc7 = let final Never #t55 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::S? */ dc8 = let final Never #t56 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::S? */ dc9 = let final Never #t57 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::S? */ dc10 = let final Never #t58 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::U? */ dc11 = let final Never #t59 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::U? */ dc12 = let final Never #t60 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::U? */ dc13 = let final Never #t61 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::U? */ dc14 = let final Never #t62 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testE(Never n) → dynamic { + self::E /* = core::int? */ e1 = let final Never #t63 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::E? /* = core::int? */ e2 = let final Never #t64 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testF(Never n) → dynamic { + self::Fa /* = core::int? */ fa1 = let final Never #t65 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Fa? /* = core::int? */ fa2 = let final Never #t66 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Fb /* = core::int? */ fb3 = let final Never #t67 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Fb? /* = core::int? */ fb4 = let final Never #t68 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testG(Never n) → dynamic { + self::G /* = dynamic */ g1 = let final Never #t69 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = dynamic */ g2 = let final Never #t70 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = core::int? */ g3 = let final Never #t71 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = core::int? */ g4 = let final Never #t72 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = core::int? */ g5 = let final Never #t73 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = core::int? */ g6 = let final Never #t74 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::S? */ g7 = let final Never #t75 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::S? */ g8 = let final Never #t76 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::S? */ g9 = let final Never #t77 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::S? */ g10 = let final Never #t78 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::U? */ g11 = let final Never #t79 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::U? */ g12 = let final Never #t80 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::U? */ g13 = let final Never #t81 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::U? */ g14 = let final Never #t82 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testHa(Never n) → dynamic { + self::Ha /* = dynamic */ ha1 = let final Never #t83 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = dynamic */ ha2 = let final Never #t84 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = core::int? */ ha3 = let final Never #t85 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = core::int? */ ha4 = let final Never #t86 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = core::int? */ ha5 = let final Never #t87 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = core::int? */ ha6 = let final Never #t88 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::S? */ ha7 = let final Never #t89 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::S? */ ha8 = let final Never #t90 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::S? */ ha9 = let final Never #t91 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::S? */ ha10 = let final Never #t92 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::U? */ ha11 = let final Never #t93 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::U? */ ha12 = let final Never #t94 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::U? */ ha13 = let final Never #t95 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::U? */ ha14 = let final Never #t96 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testHb(Never n) → dynamic { + self::Hb /* = dynamic */ hb1 = let final Never #t97 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = dynamic */ hb2 = let final Never #t98 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = core::int? */ hb3 = let final Never #t99 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = core::int? */ hb4 = let final Never #t100 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = core::int? */ hb5 = let final Never #t101 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = core::int? */ hb6 = let final Never #t102 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::S? */ hb7 = let final Never #t103 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::S? */ hb8 = let final Never #t104 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::S? */ hb9 = let final Never #t105 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::S? */ hb10 = let final Never #t106 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::U? */ hb11 = let final Never #t107 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::U? */ hb12 = let final Never #t108 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::U? */ hb13 = let final Never #t109 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::U? */ hb14 = let final Never #t110 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testHc(Never n) → dynamic { + self::Hc /* = dynamic */ hc1 = let final Never #t111 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = dynamic */ hc2 = let final Never #t112 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = core::int? */ hc3 = let final Never #t113 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = core::int? */ hc4 = let final Never #t114 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = core::int? */ hc5 = let final Never #t115 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = core::int? */ hc6 = let final Never #t116 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::S? */ hc7 = let final Never #t117 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::S? */ hc8 = let final Never #t118 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::S? */ hc9 = let final Never #t119 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::S? */ hc10 = let final Never #t120 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::U? */ hc11 = let final Never #t121 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::U? */ hc12 = let final Never #t122 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::U? */ hc13 = let final Never #t123 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::U? */ hc14 = let final Never #t124 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testI(Never n) → dynamic { + self::I /* = core::Object */ i1 = let final Never #t125 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I? /* = core::Object? */ i2 = let final Never #t126 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I /* = core::int */ i3 = let final Never #t127 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I? /* = core::int? */ i5 = let final Never #t128 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I /* = self::testI::U */ i11 = let final Never #t129 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I? /* = self::testI::U? */ i12 = let final Never #t130 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testJa(Never n) → dynamic { + self::Ja /* = core::Object */ ja1 = let final Never #t131 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja? /* = core::Object? */ ja2 = let final Never #t132 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja /* = core::int */ ja3 = let final Never #t133 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja? /* = core::int? */ ja5 = let final Never #t134 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja /* = self::testJa::U */ ja11 = let final Never #t135 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja? /* = self::testJa::U? */ ja12 = let final Never #t136 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testJc(Never n) → dynamic { + self::Jc /* = core::Object? */ jc1 = let final Never #t137 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc? /* = core::Object? */ jc2 = let final Never #t138 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc /* = core::int? */ jc3 = let final Never #t139 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc? /* = core::int? */ jc5 = let final Never #t140 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc /* = self::testJc::U? */ jc11 = let final Never #t141 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc? /* = self::testJc::U? */ jc12 = let final Never #t142 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testK(Never n) → dynamic { + self::K /* = core::Object? */ k1 = let final Never #t143 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K? /* = core::Object? */ k2 = let final Never #t144 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K /* = core::int? */ k3 = let final Never #t145 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K? /* = core::int? */ k5 = let final Never #t146 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K /* = self::testK::U? */ k11 = let final Never #t147 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K? /* = self::testK::U? */ k12 = let final Never #t148 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testLa(Never n) → dynamic { + self::La /* = core::Object? */ la1 = let final Never #t149 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La? /* = core::Object? */ la2 = let final Never #t150 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La /* = core::int? */ la3 = let final Never #t151 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La? /* = core::int? */ la5 = let final Never #t152 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La /* = self::testLa::U? */ la11 = let final Never #t153 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La? /* = self::testLa::U? */ la12 = let final Never #t154 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testLc(Never n) → dynamic { + self::Lc /* = core::Object? */ lc1 = let final Never #t155 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc? /* = core::Object? */ lc2 = let final Never #t156 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc /* = core::int? */ lc3 = let final Never #t157 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc? /* = core::int? */ lc5 = let final Never #t158 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc /* = self::testLc::U? */ lc11 = let final Never #t159 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc? /* = self::testLc::U? */ lc12 = let final Never #t160 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.outline.expect new file mode 100644 index 00000000000..2186e202422 --- /dev/null +++ b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.outline.expect @@ -0,0 +1,200 @@ +library; +import self as self; +import "dart:core" as core; + +extension type A(core::int it) { + constructor • = self::A|; + tearoff • = self::A|_#new#tearOff; +} +extension type Ba(self::A /* = core::int */ it) { + constructor • = self::Ba|; + tearoff • = self::Ba|_#new#tearOff; +} +extension type Bb(self::A? /* = core::int? */ it) { + constructor • = self::Bb|; + tearoff • = self::Bb|_#new#tearOff; +} +extension type C(T% it) { + constructor • = self::C|; + tearoff • = self::C|_#new#tearOff; +} +extension type Da(self::C /* = T% */ it) { + constructor • = self::Da|; + tearoff • = self::Da|_#new#tearOff; +} +extension type Db(self::C /* = T? */ it) { + constructor • = self::Db|; + tearoff • = self::Db|_#new#tearOff; +} +extension type Dc(self::C? /* = T? */ it) { + constructor • = self::Dc|; + tearoff • = self::Dc|_#new#tearOff; +} +extension type E(core::int? it) { + constructor • = self::E|; + tearoff • = self::E|_#new#tearOff; +} +extension type Fa(self::E /* = core::int? */ it) { + constructor • = self::Fa|; + tearoff • = self::Fa|_#new#tearOff; +} +extension type Fb(self::E? /* = core::int? */ it) { + constructor • = self::Fb|; + tearoff • = self::Fb|_#new#tearOff; +} +extension type G(T? it) { + constructor • = self::G|; + tearoff • = self::G|_#new#tearOff; +} +extension type Ha(self::G /* = T? */ it) { + constructor • = self::Ha|; + tearoff • = self::Ha|_#new#tearOff; +} +extension type Hb(self::G /* = T? */ it) { + constructor • = self::Hb|; + tearoff • = self::Hb|_#new#tearOff; +} +extension type Hc(self::G? /* = T? */ it) { + constructor • = self::Hc|; + tearoff • = self::Hc|_#new#tearOff; +} +extension type I(T it) { + constructor • = self::I|; + tearoff • = self::I|_#new#tearOff; +} +extension type Ja(self::I /* = T */ it) { + constructor • = self::Ja|; + tearoff • = self::Ja|_#new#tearOff; +} +extension type Jc(self::I? /* = T? */ it) { + constructor • = self::Jc|; + tearoff • = self::Jc|_#new#tearOff; +} +extension type K(T? it) { + constructor • = self::K|; + tearoff • = self::K|_#new#tearOff; +} +extension type La(self::K /* = T? */ it) { + constructor • = self::La|; + tearoff • = self::La|_#new#tearOff; +} +extension type Lc(self::K? /* = T? */ it) { + constructor • = self::Lc|; + tearoff • = self::Lc|_#new#tearOff; +} +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ + ; +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ + return self::A|(it); +static inline-class-member method Ba|(dynamic it) → self::Ba /* = core::int */ + ; +static inline-class-member method Ba|_#new#tearOff(dynamic it) → self::Ba /* = core::int */ + return self::Ba|(it); +static inline-class-member method Bb|(dynamic it) → self::Bb /* = core::int? */ + ; +static inline-class-member method Bb|_#new#tearOff(dynamic it) → self::Bb /* = core::int? */ + return self::Bb|(it); +static inline-class-member method C|(dynamic it) → self::C /* = self::C|::T% */ + ; +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::C|_#new#tearOff::T% */ + return self::C|(it); +static inline-class-member method Da|(dynamic it) → self::Da /* = self::Da|::T% */ + ; +static inline-class-member method Da|_#new#tearOff(dynamic it) → self::Da /* = self::Da|_#new#tearOff::T% */ + return self::Da|(it); +static inline-class-member method Db|(dynamic it) → self::Db /* = self::Db|::T? */ + ; +static inline-class-member method Db|_#new#tearOff(dynamic it) → self::Db /* = self::Db|_#new#tearOff::T? */ + return self::Db|(it); +static inline-class-member method Dc|(dynamic it) → self::Dc /* = self::Dc|::T? */ + ; +static inline-class-member method Dc|_#new#tearOff(dynamic it) → self::Dc /* = self::Dc|_#new#tearOff::T? */ + return self::Dc|(it); +static inline-class-member method E|(dynamic it) → self::E /* = core::int? */ + ; +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int? */ + return self::E|(it); +static inline-class-member method Fa|(dynamic it) → self::Fa /* = core::int? */ + ; +static inline-class-member method Fa|_#new#tearOff(dynamic it) → self::Fa /* = core::int? */ + return self::Fa|(it); +static inline-class-member method Fb|_#new#tearOff(dynamic it) → self::Fb /* = core::int? */ + return self::Fb|(it); +static inline-class-member method Fb|(dynamic it) → self::Fb /* = core::int? */ + ; +static inline-class-member method G|(dynamic it) → self::G /* = self::G|::T? */ + ; +static inline-class-member method G|_#new#tearOff(dynamic it) → self::G /* = self::G|_#new#tearOff::T? */ + return self::G|(it); +static inline-class-member method Ha|(dynamic it) → self::Ha /* = self::Ha|::T? */ + ; +static inline-class-member method Ha|_#new#tearOff(dynamic it) → self::Ha /* = self::Ha|_#new#tearOff::T? */ + return self::Ha|(it); +static inline-class-member method Hb|(dynamic it) → self::Hb /* = self::Hb|::T? */ + ; +static inline-class-member method Hb|_#new#tearOff(dynamic it) → self::Hb /* = self::Hb|_#new#tearOff::T? */ + return self::Hb|(it); +static inline-class-member method Hc|(dynamic it) → self::Hc /* = self::Hc|::T? */ + ; +static inline-class-member method Hc|_#new#tearOff(dynamic it) → self::Hc /* = self::Hc|_#new#tearOff::T? */ + return self::Hc|(it); +static inline-class-member method I|(dynamic it) → self::I /* = self::I|::T */ + ; +static inline-class-member method I|_#new#tearOff(dynamic it) → self::I /* = self::I|_#new#tearOff::T */ + return self::I|(it); +static inline-class-member method Ja|(dynamic it) → self::Ja /* = self::Ja|::T */ + ; +static inline-class-member method Ja|_#new#tearOff(dynamic it) → self::Ja /* = self::Ja|_#new#tearOff::T */ + return self::Ja|(it); +static inline-class-member method Jc|(dynamic it) → self::Jc /* = self::Jc|::T? */ + ; +static inline-class-member method Jc|_#new#tearOff(dynamic it) → self::Jc /* = self::Jc|_#new#tearOff::T? */ + return self::Jc|(it); +static inline-class-member method K|(dynamic it) → self::K /* = self::K|::T? */ + ; +static inline-class-member method K|_#new#tearOff(dynamic it) → self::K /* = self::K|_#new#tearOff::T? */ + return self::K|(it); +static inline-class-member method La|(dynamic it) → self::La /* = self::La|::T? */ + ; +static inline-class-member method La|_#new#tearOff(dynamic it) → self::La /* = self::La|_#new#tearOff::T? */ + return self::La|(it); +static inline-class-member method Lc|(dynamic it) → self::Lc /* = self::Lc|::T? */ + ; +static inline-class-member method Lc|_#new#tearOff(dynamic it) → self::Lc /* = self::Lc|_#new#tearOff::T? */ + return self::Lc|(it); +static method testA(Never n) → dynamic + ; +static method testBa(Never n) → dynamic + ; +static method testC(Never n) → dynamic + ; +static method testDa(Never n) → dynamic + ; +static method testDb(Never n) → dynamic + ; +static method testDc(Never n) → dynamic + ; +static method testE(Never n) → dynamic + ; +static method testF(Never n) → dynamic + ; +static method testG(Never n) → dynamic + ; +static method testHa(Never n) → dynamic + ; +static method testHb(Never n) → dynamic + ; +static method testHc(Never n) → dynamic + ; +static method testI(Never n) → dynamic + ; +static method testJa(Never n) → dynamic + ; +static method testJc(Never n) → dynamic + ; +static method testK(Never n) → dynamic + ; +static method testLa(Never n) → dynamic + ; +static method testLc(Never n) → dynamic + ; diff --git a/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.transformed.expect new file mode 100644 index 00000000000..22240934913 --- /dev/null +++ b/pkg/front_end/testcases/inline_class/extension_types/representation_type.dart.weak.transformed.expect @@ -0,0 +1,401 @@ +library; +import self as self; +import "dart:core" as core; +import "dart:_internal" as _in; + +extension type A(core::int it) { + constructor • = self::A|; + tearoff • = self::A|_#new#tearOff; +} +extension type Ba(self::A /* = core::int */ it) { + constructor • = self::Ba|; + tearoff • = self::Ba|_#new#tearOff; +} +extension type Bb(self::A? /* = core::int? */ it) { + constructor • = self::Bb|; + tearoff • = self::Bb|_#new#tearOff; +} +extension type C(T% it) { + constructor • = self::C|; + tearoff • = self::C|_#new#tearOff; +} +extension type Da(self::C /* = T% */ it) { + constructor • = self::Da|; + tearoff • = self::Da|_#new#tearOff; +} +extension type Db(self::C /* = T? */ it) { + constructor • = self::Db|; + tearoff • = self::Db|_#new#tearOff; +} +extension type Dc(self::C? /* = T? */ it) { + constructor • = self::Dc|; + tearoff • = self::Dc|_#new#tearOff; +} +extension type E(core::int? it) { + constructor • = self::E|; + tearoff • = self::E|_#new#tearOff; +} +extension type Fa(self::E /* = core::int? */ it) { + constructor • = self::Fa|; + tearoff • = self::Fa|_#new#tearOff; +} +extension type Fb(self::E? /* = core::int? */ it) { + constructor • = self::Fb|; + tearoff • = self::Fb|_#new#tearOff; +} +extension type G(T? it) { + constructor • = self::G|; + tearoff • = self::G|_#new#tearOff; +} +extension type Ha(self::G /* = T? */ it) { + constructor • = self::Ha|; + tearoff • = self::Ha|_#new#tearOff; +} +extension type Hb(self::G /* = T? */ it) { + constructor • = self::Hb|; + tearoff • = self::Hb|_#new#tearOff; +} +extension type Hc(self::G? /* = T? */ it) { + constructor • = self::Hc|; + tearoff • = self::Hc|_#new#tearOff; +} +extension type I(T it) { + constructor • = self::I|; + tearoff • = self::I|_#new#tearOff; +} +extension type Ja(self::I /* = T */ it) { + constructor • = self::Ja|; + tearoff • = self::Ja|_#new#tearOff; +} +extension type Jc(self::I? /* = T? */ it) { + constructor • = self::Jc|; + tearoff • = self::Jc|_#new#tearOff; +} +extension type K(T? it) { + constructor • = self::K|; + tearoff • = self::K|_#new#tearOff; +} +extension type La(self::K /* = T? */ it) { + constructor • = self::La|; + tearoff • = self::La|_#new#tearOff; +} +extension type Lc(self::K? /* = T? */ it) { + constructor • = self::Lc|; + tearoff • = self::Lc|_#new#tearOff; +} +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; + return #this; +} +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ + return self::A|(it); +static inline-class-member method Ba|(dynamic it) → self::Ba /* = core::int */ { + lowered final self::Ba /* = core::int */ #this = it; + return #this; +} +static inline-class-member method Ba|_#new#tearOff(dynamic it) → self::Ba /* = core::int */ + return self::Ba|(it); +static inline-class-member method Bb|(dynamic it) → self::Bb /* = core::int? */ { + lowered final self::Bb /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method Bb|_#new#tearOff(dynamic it) → self::Bb /* = core::int? */ + return self::Bb|(it); +static inline-class-member method C|(dynamic it) → self::C /* = self::C|::T% */ { + lowered final self::C /* = self::C|::T% */ #this = it; + return #this; +} +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::C|_#new#tearOff::T% */ + return self::C|(it); +static inline-class-member method Da|(dynamic it) → self::Da /* = self::Da|::T% */ { + lowered final self::Da /* = self::Da|::T% */ #this = it; + return #this; +} +static inline-class-member method Da|_#new#tearOff(dynamic it) → self::Da /* = self::Da|_#new#tearOff::T% */ + return self::Da|(it); +static inline-class-member method Db|(dynamic it) → self::Db /* = self::Db|::T? */ { + lowered final self::Db /* = self::Db|::T? */ #this = it; + return #this; +} +static inline-class-member method Db|_#new#tearOff(dynamic it) → self::Db /* = self::Db|_#new#tearOff::T? */ + return self::Db|(it); +static inline-class-member method Dc|(dynamic it) → self::Dc /* = self::Dc|::T? */ { + lowered final self::Dc /* = self::Dc|::T? */ #this = it; + return #this; +} +static inline-class-member method Dc|_#new#tearOff(dynamic it) → self::Dc /* = self::Dc|_#new#tearOff::T? */ + return self::Dc|(it); +static inline-class-member method E|(dynamic it) → self::E /* = core::int? */ { + lowered final self::E /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int? */ + return self::E|(it); +static inline-class-member method Fa|(dynamic it) → self::Fa /* = core::int? */ { + lowered final self::Fa /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method Fa|_#new#tearOff(dynamic it) → self::Fa /* = core::int? */ + return self::Fa|(it); +static inline-class-member method Fb|_#new#tearOff(dynamic it) → self::Fb /* = core::int? */ + return self::Fb|(it); +static inline-class-member method Fb|(dynamic it) → self::Fb /* = core::int? */ { + lowered final self::Fb /* = core::int? */ #this = it; + return #this; +} +static inline-class-member method G|(dynamic it) → self::G /* = self::G|::T? */ { + lowered final self::G /* = self::G|::T? */ #this = it; + return #this; +} +static inline-class-member method G|_#new#tearOff(dynamic it) → self::G /* = self::G|_#new#tearOff::T? */ + return self::G|(it); +static inline-class-member method Ha|(dynamic it) → self::Ha /* = self::Ha|::T? */ { + lowered final self::Ha /* = self::Ha|::T? */ #this = it; + return #this; +} +static inline-class-member method Ha|_#new#tearOff(dynamic it) → self::Ha /* = self::Ha|_#new#tearOff::T? */ + return self::Ha|(it); +static inline-class-member method Hb|(dynamic it) → self::Hb /* = self::Hb|::T? */ { + lowered final self::Hb /* = self::Hb|::T? */ #this = it; + return #this; +} +static inline-class-member method Hb|_#new#tearOff(dynamic it) → self::Hb /* = self::Hb|_#new#tearOff::T? */ + return self::Hb|(it); +static inline-class-member method Hc|(dynamic it) → self::Hc /* = self::Hc|::T? */ { + lowered final self::Hc /* = self::Hc|::T? */ #this = it; + return #this; +} +static inline-class-member method Hc|_#new#tearOff(dynamic it) → self::Hc /* = self::Hc|_#new#tearOff::T? */ + return self::Hc|(it); +static inline-class-member method I|(dynamic it) → self::I /* = self::I|::T */ { + lowered final self::I /* = self::I|::T */ #this = it; + return #this; +} +static inline-class-member method I|_#new#tearOff(dynamic it) → self::I /* = self::I|_#new#tearOff::T */ + return self::I|(it); +static inline-class-member method Ja|(dynamic it) → self::Ja /* = self::Ja|::T */ { + lowered final self::Ja /* = self::Ja|::T */ #this = it; + return #this; +} +static inline-class-member method Ja|_#new#tearOff(dynamic it) → self::Ja /* = self::Ja|_#new#tearOff::T */ + return self::Ja|(it); +static inline-class-member method Jc|(dynamic it) → self::Jc /* = self::Jc|::T? */ { + lowered final self::Jc /* = self::Jc|::T? */ #this = it; + return #this; +} +static inline-class-member method Jc|_#new#tearOff(dynamic it) → self::Jc /* = self::Jc|_#new#tearOff::T? */ + return self::Jc|(it); +static inline-class-member method K|(dynamic it) → self::K /* = self::K|::T? */ { + lowered final self::K /* = self::K|::T? */ #this = it; + return #this; +} +static inline-class-member method K|_#new#tearOff(dynamic it) → self::K /* = self::K|_#new#tearOff::T? */ + return self::K|(it); +static inline-class-member method La|(dynamic it) → self::La /* = self::La|::T? */ { + lowered final self::La /* = self::La|::T? */ #this = it; + return #this; +} +static inline-class-member method La|_#new#tearOff(dynamic it) → self::La /* = self::La|_#new#tearOff::T? */ + return self::La|(it); +static inline-class-member method Lc|(dynamic it) → self::Lc /* = self::Lc|::T? */ { + lowered final self::Lc /* = self::Lc|::T? */ #this = it; + return #this; +} +static inline-class-member method Lc|_#new#tearOff(dynamic it) → self::Lc /* = self::Lc|_#new#tearOff::T? */ + return self::Lc|(it); +static method testA(Never n) → dynamic { + self::A /* = core::int */ a1 = let final Never #t1 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::A? /* = core::int? */ a2 = let final Never #t2 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testBa(Never n) → dynamic { + self::Ba /* = core::int */ ba1 = let final Never #t3 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ba? /* = core::int? */ ba2 = let final Never #t4 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Bb /* = core::int? */ bb3 = let final Never #t5 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Bb? /* = core::int? */ bb4 = let final Never #t6 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testC(Never n) → dynamic { + self::C /* = dynamic */ c1 = let final Never #t7 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = dynamic */ c2 = let final Never #t8 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = core::int */ c3 = let final Never #t9 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = core::int? */ c4 = let final Never #t10 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = core::int? */ c5 = let final Never #t11 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = core::int? */ c6 = let final Never #t12 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::S% */ c7 = let final Never #t13 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::S? */ c8 = let final Never #t14 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::S? */ c9 = let final Never #t15 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::S? */ c10 = let final Never #t16 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::U */ c11 = let final Never #t17 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::U? */ c12 = let final Never #t18 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C /* = self::testC::U? */ c13 = let final Never #t19 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::C? /* = self::testC::U? */ c14 = let final Never #t20 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testDa(Never n) → dynamic { + self::Da /* = dynamic */ da1 = let final Never #t21 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = dynamic */ da2 = let final Never #t22 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = core::int */ da3 = let final Never #t23 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = core::int? */ da4 = let final Never #t24 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = core::int? */ da5 = let final Never #t25 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = core::int? */ da6 = let final Never #t26 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::S% */ da7 = let final Never #t27 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::S? */ da8 = let final Never #t28 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::S? */ da9 = let final Never #t29 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::S? */ da10 = let final Never #t30 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::U */ da11 = let final Never #t31 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::U? */ da12 = let final Never #t32 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da /* = self::testDa::U? */ da13 = let final Never #t33 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Da? /* = self::testDa::U? */ da14 = let final Never #t34 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testDb(Never n) → dynamic { + self::Db /* = dynamic */ db1 = let final Never #t35 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = dynamic */ db2 = let final Never #t36 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = core::int? */ db3 = let final Never #t37 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = core::int? */ db4 = let final Never #t38 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = core::int? */ db5 = let final Never #t39 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = core::int? */ db6 = let final Never #t40 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::S? */ db7 = let final Never #t41 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::S? */ db8 = let final Never #t42 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::S? */ db9 = let final Never #t43 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::S? */ db10 = let final Never #t44 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::U? */ db11 = let final Never #t45 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::U? */ db12 = let final Never #t46 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db /* = self::testDb::U? */ db13 = let final Never #t47 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Db? /* = self::testDb::U? */ db14 = let final Never #t48 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testDc(Never n) → dynamic { + self::Dc /* = dynamic */ dc1 = let final Never #t49 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = dynamic */ dc2 = let final Never #t50 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = core::int? */ dc3 = let final Never #t51 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = core::int? */ dc4 = let final Never #t52 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = core::int? */ dc5 = let final Never #t53 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = core::int? */ dc6 = let final Never #t54 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::S? */ dc7 = let final Never #t55 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::S? */ dc8 = let final Never #t56 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::S? */ dc9 = let final Never #t57 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::S? */ dc10 = let final Never #t58 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::U? */ dc11 = let final Never #t59 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::U? */ dc12 = let final Never #t60 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc /* = self::testDc::U? */ dc13 = let final Never #t61 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Dc? /* = self::testDc::U? */ dc14 = let final Never #t62 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testE(Never n) → dynamic { + self::E /* = core::int? */ e1 = let final Never #t63 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::E? /* = core::int? */ e2 = let final Never #t64 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testF(Never n) → dynamic { + self::Fa /* = core::int? */ fa1 = let final Never #t65 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Fa? /* = core::int? */ fa2 = let final Never #t66 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Fb /* = core::int? */ fb3 = let final Never #t67 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Fb? /* = core::int? */ fb4 = let final Never #t68 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testG(Never n) → dynamic { + self::G /* = dynamic */ g1 = let final Never #t69 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = dynamic */ g2 = let final Never #t70 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = core::int? */ g3 = let final Never #t71 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = core::int? */ g4 = let final Never #t72 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = core::int? */ g5 = let final Never #t73 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = core::int? */ g6 = let final Never #t74 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::S? */ g7 = let final Never #t75 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::S? */ g8 = let final Never #t76 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::S? */ g9 = let final Never #t77 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::S? */ g10 = let final Never #t78 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::U? */ g11 = let final Never #t79 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::U? */ g12 = let final Never #t80 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G /* = self::testG::U? */ g13 = let final Never #t81 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::G? /* = self::testG::U? */ g14 = let final Never #t82 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testHa(Never n) → dynamic { + self::Ha /* = dynamic */ ha1 = let final Never #t83 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = dynamic */ ha2 = let final Never #t84 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = core::int? */ ha3 = let final Never #t85 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = core::int? */ ha4 = let final Never #t86 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = core::int? */ ha5 = let final Never #t87 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = core::int? */ ha6 = let final Never #t88 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::S? */ ha7 = let final Never #t89 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::S? */ ha8 = let final Never #t90 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::S? */ ha9 = let final Never #t91 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::S? */ ha10 = let final Never #t92 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::U? */ ha11 = let final Never #t93 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::U? */ ha12 = let final Never #t94 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha /* = self::testHa::U? */ ha13 = let final Never #t95 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ha? /* = self::testHa::U? */ ha14 = let final Never #t96 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testHb(Never n) → dynamic { + self::Hb /* = dynamic */ hb1 = let final Never #t97 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = dynamic */ hb2 = let final Never #t98 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = core::int? */ hb3 = let final Never #t99 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = core::int? */ hb4 = let final Never #t100 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = core::int? */ hb5 = let final Never #t101 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = core::int? */ hb6 = let final Never #t102 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::S? */ hb7 = let final Never #t103 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::S? */ hb8 = let final Never #t104 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::S? */ hb9 = let final Never #t105 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::S? */ hb10 = let final Never #t106 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::U? */ hb11 = let final Never #t107 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::U? */ hb12 = let final Never #t108 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb /* = self::testHb::U? */ hb13 = let final Never #t109 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hb? /* = self::testHb::U? */ hb14 = let final Never #t110 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testHc(Never n) → dynamic { + self::Hc /* = dynamic */ hc1 = let final Never #t111 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = dynamic */ hc2 = let final Never #t112 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = core::int? */ hc3 = let final Never #t113 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = core::int? */ hc4 = let final Never #t114 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = core::int? */ hc5 = let final Never #t115 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = core::int? */ hc6 = let final Never #t116 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::S? */ hc7 = let final Never #t117 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::S? */ hc8 = let final Never #t118 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::S? */ hc9 = let final Never #t119 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::S? */ hc10 = let final Never #t120 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::U? */ hc11 = let final Never #t121 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::U? */ hc12 = let final Never #t122 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc /* = self::testHc::U? */ hc13 = let final Never #t123 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Hc? /* = self::testHc::U? */ hc14 = let final Never #t124 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testI(Never n) → dynamic { + self::I /* = core::Object */ i1 = let final Never #t125 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I? /* = core::Object? */ i2 = let final Never #t126 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I /* = core::int */ i3 = let final Never #t127 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I? /* = core::int? */ i5 = let final Never #t128 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I /* = self::testI::U */ i11 = let final Never #t129 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::I? /* = self::testI::U? */ i12 = let final Never #t130 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testJa(Never n) → dynamic { + self::Ja /* = core::Object */ ja1 = let final Never #t131 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja? /* = core::Object? */ ja2 = let final Never #t132 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja /* = core::int */ ja3 = let final Never #t133 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja? /* = core::int? */ ja5 = let final Never #t134 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja /* = self::testJa::U */ ja11 = let final Never #t135 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Ja? /* = self::testJa::U? */ ja12 = let final Never #t136 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testJc(Never n) → dynamic { + self::Jc /* = core::Object? */ jc1 = let final Never #t137 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc? /* = core::Object? */ jc2 = let final Never #t138 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc /* = core::int? */ jc3 = let final Never #t139 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc? /* = core::int? */ jc5 = let final Never #t140 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc /* = self::testJc::U? */ jc11 = let final Never #t141 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Jc? /* = self::testJc::U? */ jc12 = let final Never #t142 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testK(Never n) → dynamic { + self::K /* = core::Object? */ k1 = let final Never #t143 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K? /* = core::Object? */ k2 = let final Never #t144 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K /* = core::int? */ k3 = let final Never #t145 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K? /* = core::int? */ k5 = let final Never #t146 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K /* = self::testK::U? */ k11 = let final Never #t147 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::K? /* = self::testK::U? */ k12 = let final Never #t148 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testLa(Never n) → dynamic { + self::La /* = core::Object? */ la1 = let final Never #t149 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La? /* = core::Object? */ la2 = let final Never #t150 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La /* = core::int? */ la3 = let final Never #t151 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La? /* = core::int? */ la5 = let final Never #t152 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La /* = self::testLa::U? */ la11 = let final Never #t153 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::La? /* = self::testLa::U? */ la12 = let final Never #t154 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} +static method testLc(Never n) → dynamic { + self::Lc /* = core::Object? */ lc1 = let final Never #t155 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc? /* = core::Object? */ lc2 = let final Never #t156 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc /* = core::int? */ lc3 = let final Never #t157 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc? /* = core::int? */ lc5 = let final Never #t158 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc /* = self::testLc::U? */ lc11 = let final Never #t159 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + self::Lc? /* = self::testLc::U? */ lc12 = let final Never #t160 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); +} diff --git a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.strong.expect index 78d28b3a970..12b93d75ed9 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.strong.expect @@ -17,49 +17,49 @@ extension type A(core::int it) { constructor • = self::A|; tearoff • = self::A|_#new#tearOff; } -extension type B(core::int it) implements self::A { +extension type B(core::int it) implements self::A /* = core::int */ { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C(core::int it) implements self::A { +extension type C(core::int it) implements self::A /* = core::int */ { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(core::int it) implements self::A, self::B { +extension type D(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } -extension type E(core::int it) implements self::B, self::C { +extension type E(core::int it) implements self::B /* = core::int */, self::C /* = core::int */ { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ { + lowered final self::B /* = core::int */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ { + lowered final self::C /* = core::int */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ { + lowered final self::D /* = core::int */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ { + lowered final self::E /* = core::int */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.strong.transformed.expect index 78d28b3a970..12b93d75ed9 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.strong.transformed.expect @@ -17,49 +17,49 @@ extension type A(core::int it) { constructor • = self::A|; tearoff • = self::A|_#new#tearOff; } -extension type B(core::int it) implements self::A { +extension type B(core::int it) implements self::A /* = core::int */ { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C(core::int it) implements self::A { +extension type C(core::int it) implements self::A /* = core::int */ { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(core::int it) implements self::A, self::B { +extension type D(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } -extension type E(core::int it) implements self::B, self::C { +extension type E(core::int it) implements self::B /* = core::int */, self::C /* = core::int */ { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ { + lowered final self::B /* = core::int */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ { + lowered final self::C /* = core::int */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ { + lowered final self::D /* = core::int */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ { + lowered final self::E /* = core::int */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.expect index 78d28b3a970..12b93d75ed9 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.expect @@ -17,49 +17,49 @@ extension type A(core::int it) { constructor • = self::A|; tearoff • = self::A|_#new#tearOff; } -extension type B(core::int it) implements self::A { +extension type B(core::int it) implements self::A /* = core::int */ { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C(core::int it) implements self::A { +extension type C(core::int it) implements self::A /* = core::int */ { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(core::int it) implements self::A, self::B { +extension type D(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } -extension type E(core::int it) implements self::B, self::C { +extension type E(core::int it) implements self::B /* = core::int */, self::C /* = core::int */ { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ { + lowered final self::B /* = core::int */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ { + lowered final self::C /* = core::int */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ { + lowered final self::D /* = core::int */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ { + lowered final self::E /* = core::int */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.modular.expect index 78d28b3a970..12b93d75ed9 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.modular.expect @@ -17,49 +17,49 @@ extension type A(core::int it) { constructor • = self::A|; tearoff • = self::A|_#new#tearOff; } -extension type B(core::int it) implements self::A { +extension type B(core::int it) implements self::A /* = core::int */ { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C(core::int it) implements self::A { +extension type C(core::int it) implements self::A /* = core::int */ { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(core::int it) implements self::A, self::B { +extension type D(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } -extension type E(core::int it) implements self::B, self::C { +extension type E(core::int it) implements self::B /* = core::int */, self::C /* = core::int */ { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ { + lowered final self::B /* = core::int */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ { + lowered final self::C /* = core::int */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ { + lowered final self::D /* = core::int */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ { + lowered final self::E /* = core::int */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.outline.expect index 177f1be8d75..2f4656b1795 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.outline.expect @@ -17,39 +17,39 @@ extension type A(core::int it) { constructor • = self::A|; tearoff • = self::A|_#new#tearOff; } -extension type B(core::int it) implements self::A { +extension type B(core::int it) implements self::A /* = core::int */ { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C(core::int it) implements self::A { +extension type C(core::int it) implements self::A /* = core::int */ { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(core::int it) implements self::A, self::B { +extension type D(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } -extension type E(core::int it) implements self::B, self::C { +extension type E(core::int it) implements self::B /* = core::int */, self::C /* = core::int */ { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ ; -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ ; -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ ; -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ ; -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ ; -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.transformed.expect index 78d28b3a970..12b93d75ed9 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/super_extension_type_conflict.dart.weak.transformed.expect @@ -17,49 +17,49 @@ extension type A(core::int it) { constructor • = self::A|; tearoff • = self::A|_#new#tearOff; } -extension type B(core::int it) implements self::A { +extension type B(core::int it) implements self::A /* = core::int */ { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C(core::int it) implements self::A { +extension type C(core::int it) implements self::A /* = core::int */ { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(core::int it) implements self::A, self::B { +extension type D(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } -extension type E(core::int it) implements self::B, self::C { +extension type E(core::int it) implements self::B /* = core::int */, self::C /* = core::int */ { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method A|(dynamic it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(dynamic it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(dynamic it) → self::A +static inline-class-member method A|_#new#tearOff(dynamic it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = core::int */ { + lowered final self::B /* = core::int */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = core::int */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = core::int */ { + lowered final self::C /* = core::int */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = core::int */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = core::int */ { + lowered final self::D /* = core::int */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = core::int */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = core::int */ { + lowered final self::E /* = core::int */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = core::int */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.strong.expect index 302a8814089..aab7d029062 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.strong.expect @@ -26,7 +26,7 @@ extension type C(self::A it) { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(self::A it) implements self::A, self::B { +extension type D(self::A it) implements self::A, self::B /* = self::A */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } @@ -34,27 +34,27 @@ extension type E(self::A it) { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = self::A */ { + lowered final self::B /* = self::A */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::A */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = self::A */ { + lowered final self::C /* = self::A */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::A */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = self::A */ { + lowered final self::D /* = self::A */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = self::A */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = self::A */ { + lowered final self::E /* = self::A */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::A */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.strong.transformed.expect index 302a8814089..aab7d029062 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.strong.transformed.expect @@ -26,7 +26,7 @@ extension type C(self::A it) { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(self::A it) implements self::A, self::B { +extension type D(self::A it) implements self::A, self::B /* = self::A */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } @@ -34,27 +34,27 @@ extension type E(self::A it) { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = self::A */ { + lowered final self::B /* = self::A */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::A */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = self::A */ { + lowered final self::C /* = self::A */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::A */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = self::A */ { + lowered final self::D /* = self::A */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = self::A */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = self::A */ { + lowered final self::E /* = self::A */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::A */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.expect index 302a8814089..aab7d029062 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.expect @@ -26,7 +26,7 @@ extension type C(self::A it) { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(self::A it) implements self::A, self::B { +extension type D(self::A it) implements self::A, self::B /* = self::A */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } @@ -34,27 +34,27 @@ extension type E(self::A it) { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = self::A */ { + lowered final self::B /* = self::A */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::A */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = self::A */ { + lowered final self::C /* = self::A */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::A */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = self::A */ { + lowered final self::D /* = self::A */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = self::A */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = self::A */ { + lowered final self::E /* = self::A */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::A */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.modular.expect index 302a8814089..aab7d029062 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.modular.expect @@ -26,7 +26,7 @@ extension type C(self::A it) { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(self::A it) implements self::A, self::B { +extension type D(self::A it) implements self::A, self::B /* = self::A */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } @@ -34,27 +34,27 @@ extension type E(self::A it) { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = self::A */ { + lowered final self::B /* = self::A */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::A */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = self::A */ { + lowered final self::C /* = self::A */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::A */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = self::A */ { + lowered final self::D /* = self::A */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = self::A */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = self::A */ { + lowered final self::E /* = self::A */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::A */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.outline.expect index 5190f94664d..01b337df6a5 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.outline.expect @@ -25,7 +25,7 @@ extension type C(self::A it) { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(self::A it) implements self::A, self::B { +extension type D(self::A it) implements self::A, self::B /* = self::A */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } @@ -33,19 +33,19 @@ extension type E(self::A it) { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method B|(dynamic it) → self::B +static inline-class-member method B|(dynamic it) → self::B /* = self::A */ ; -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::A */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C +static inline-class-member method C|(dynamic it) → self::C /* = self::A */ ; -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::A */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D +static inline-class-member method D|(dynamic it) → self::D /* = self::A */ ; -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = self::A */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E +static inline-class-member method E|(dynamic it) → self::E /* = self::A */ ; -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::A */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.transformed.expect index 302a8814089..aab7d029062 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/supertype_conflict.dart.weak.transformed.expect @@ -26,7 +26,7 @@ extension type C(self::A it) { constructor • = self::C|; tearoff • = self::C|_#new#tearOff; } -extension type D(self::A it) implements self::A, self::B { +extension type D(self::A it) implements self::A, self::B /* = self::A */ { constructor • = self::D|; tearoff • = self::D|_#new#tearOff; } @@ -34,27 +34,27 @@ extension type E(self::A it) { constructor • = self::E|; tearoff • = self::E|_#new#tearOff; } -static inline-class-member method B|(dynamic it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(dynamic it) → self::B /* = self::A */ { + lowered final self::B /* = self::A */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(dynamic it) → self::B +static inline-class-member method B|_#new#tearOff(dynamic it) → self::B /* = self::A */ return self::B|(it); -static inline-class-member method C|(dynamic it) → self::C { - lowered final self::C #this = it; +static inline-class-member method C|(dynamic it) → self::C /* = self::A */ { + lowered final self::C /* = self::A */ #this = it; return #this; } -static inline-class-member method C|_#new#tearOff(dynamic it) → self::C +static inline-class-member method C|_#new#tearOff(dynamic it) → self::C /* = self::A */ return self::C|(it); -static inline-class-member method D|(dynamic it) → self::D { - lowered final self::D #this = it; +static inline-class-member method D|(dynamic it) → self::D /* = self::A */ { + lowered final self::D /* = self::A */ #this = it; return #this; } -static inline-class-member method D|_#new#tearOff(dynamic it) → self::D +static inline-class-member method D|_#new#tearOff(dynamic it) → self::D /* = self::A */ return self::D|(it); -static inline-class-member method E|(dynamic it) → self::E { - lowered final self::E #this = it; +static inline-class-member method E|(dynamic it) → self::E /* = self::A */ { + lowered final self::E /* = self::A */ #this = it; return #this; } -static inline-class-member method E|_#new#tearOff(dynamic it) → self::E +static inline-class-member method E|_#new#tearOff(dynamic it) → self::E /* = self::A */ return self::E|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.strong.expect b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.strong.expect index 67d34392811..55bc3e3cb98 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.strong.expect @@ -16,9 +16,9 @@ extension type Extension(invalid-type it) { constructor • = self::Extension|; tearoff • = self::Extension|_#new#tearOff; } -static inline-class-member method Extension|(dynamic it) → self::Extension { - lowered final self::Extension #this = it; +static inline-class-member method Extension|(dynamic it) → self::Extension /* = invalid-type */ { + lowered final self::Extension /* = invalid-type */ #this = it; return #this; } -static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension +static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension /* = invalid-type */ return self::Extension|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.strong.transformed.expect index 67d34392811..55bc3e3cb98 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.strong.transformed.expect @@ -16,9 +16,9 @@ extension type Extension(invalid-type it) { constructor • = self::Extension|; tearoff • = self::Extension|_#new#tearOff; } -static inline-class-member method Extension|(dynamic it) → self::Extension { - lowered final self::Extension #this = it; +static inline-class-member method Extension|(dynamic it) → self::Extension /* = invalid-type */ { + lowered final self::Extension /* = invalid-type */ #this = it; return #this; } -static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension +static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension /* = invalid-type */ return self::Extension|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.expect b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.expect index 67d34392811..55bc3e3cb98 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.expect @@ -16,9 +16,9 @@ extension type Extension(invalid-type it) { constructor • = self::Extension|; tearoff • = self::Extension|_#new#tearOff; } -static inline-class-member method Extension|(dynamic it) → self::Extension { - lowered final self::Extension #this = it; +static inline-class-member method Extension|(dynamic it) → self::Extension /* = invalid-type */ { + lowered final self::Extension /* = invalid-type */ #this = it; return #this; } -static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension +static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension /* = invalid-type */ return self::Extension|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.modular.expect index 67d34392811..55bc3e3cb98 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.modular.expect @@ -16,9 +16,9 @@ extension type Extension(invalid-type it) { constructor • = self::Extension|; tearoff • = self::Extension|_#new#tearOff; } -static inline-class-member method Extension|(dynamic it) → self::Extension { - lowered final self::Extension #this = it; +static inline-class-member method Extension|(dynamic it) → self::Extension /* = invalid-type */ { + lowered final self::Extension /* = invalid-type */ #this = it; return #this; } -static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension +static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension /* = invalid-type */ return self::Extension|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.outline.expect index 2f6c952b174..510f4e4d926 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.outline.expect @@ -12,7 +12,7 @@ extension type Extension(invalid-type it) { constructor • = self::Extension|; tearoff • = self::Extension|_#new#tearOff; } -static inline-class-member method Extension|(dynamic it) → self::Extension +static inline-class-member method Extension|(dynamic it) → self::Extension /* = invalid-type */ ; -static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension +static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension /* = invalid-type */ return self::Extension|(it); diff --git a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.transformed.expect index 67d34392811..55bc3e3cb98 100644 --- a/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/extension_types/unresolved_type_extension_type_this.dart.weak.transformed.expect @@ -16,9 +16,9 @@ extension type Extension(invalid-type it) { constructor • = self::Extension|; tearoff • = self::Extension|_#new#tearOff; } -static inline-class-member method Extension|(dynamic it) → self::Extension { - lowered final self::Extension #this = it; +static inline-class-member method Extension|(dynamic it) → self::Extension /* = invalid-type */ { + lowered final self::Extension /* = invalid-type */ #this = it; return #this; } -static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension +static inline-class-member method Extension|_#new#tearOff(dynamic it) → self::Extension /* = invalid-type */ return self::Extension|(it); diff --git a/pkg/front_end/testcases/inline_class/external.dart.strong.expect b/pkg/front_end/testcases/inline_class/external.dart.strong.expect index fd0b9dce228..b71fffda71d 100644 --- a/pkg/front_end/testcases/inline_class/external.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/external.dart.strong.expect @@ -27,36 +27,36 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T%) → T% +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T%) → T% return (T% t) → T% => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); () → self::A f1 = self::B|get#method(b1); - b2 = self::B|genericMethod(b2, b2); + b2 = self::B|genericMethod(b2, b2); (T%) → T% f2 = self::B|get#genericMethod(b2); (core::int) → core::int f3 = self::B|get#genericMethod(b2); b1 = self::B|get#getter(b2); @@ -65,7 +65,7 @@ static method method(self::A a) → void { self::B|staticField = a; a = self::B|staticMethod(); () → self::A f4 = #C1; - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); (T%) → T% f5 = #C2; (core::String) → core::String f6 = #C3; b1 = self::B|staticGetter; diff --git a/pkg/front_end/testcases/inline_class/external.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/external.dart.strong.transformed.expect index fd0b9dce228..b71fffda71d 100644 --- a/pkg/front_end/testcases/inline_class/external.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/external.dart.strong.transformed.expect @@ -27,36 +27,36 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T%) → T% +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T%) → T% return (T% t) → T% => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); () → self::A f1 = self::B|get#method(b1); - b2 = self::B|genericMethod(b2, b2); + b2 = self::B|genericMethod(b2, b2); (T%) → T% f2 = self::B|get#genericMethod(b2); (core::int) → core::int f3 = self::B|get#genericMethod(b2); b1 = self::B|get#getter(b2); @@ -65,7 +65,7 @@ static method method(self::A a) → void { self::B|staticField = a; a = self::B|staticMethod(); () → self::A f4 = #C1; - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); (T%) → T% f5 = #C2; (core::String) → core::String f6 = #C3; b1 = self::B|staticGetter; diff --git a/pkg/front_end/testcases/inline_class/external.dart.weak.expect b/pkg/front_end/testcases/inline_class/external.dart.weak.expect index 871cadbba0e..fc3037a9b73 100644 --- a/pkg/front_end/testcases/inline_class/external.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/external.dart.weak.expect @@ -27,36 +27,36 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T%) → T% +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T%) → T% return (T% t) → T% => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); () → self::A f1 = self::B|get#method(b1); - b2 = self::B|genericMethod(b2, b2); + b2 = self::B|genericMethod(b2, b2); (T%) → T% f2 = self::B|get#genericMethod(b2); (core::int) → core::int f3 = self::B|get#genericMethod(b2); b1 = self::B|get#getter(b2); @@ -65,7 +65,7 @@ static method method(self::A a) → void { self::B|staticField = a; a = self::B|staticMethod(); () → self::A f4 = #C1; - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); (T%) → T% f5 = #C2; (core::String) → core::String f6 = #C3; b1 = self::B|staticGetter; diff --git a/pkg/front_end/testcases/inline_class/external.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/external.dart.weak.modular.expect index 871cadbba0e..fc3037a9b73 100644 --- a/pkg/front_end/testcases/inline_class/external.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/external.dart.weak.modular.expect @@ -27,36 +27,36 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T%) → T% +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T%) → T% return (T% t) → T% => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); () → self::A f1 = self::B|get#method(b1); - b2 = self::B|genericMethod(b2, b2); + b2 = self::B|genericMethod(b2, b2); (T%) → T% f2 = self::B|get#genericMethod(b2); (core::int) → core::int f3 = self::B|get#genericMethod(b2); b1 = self::B|get#getter(b2); @@ -65,7 +65,7 @@ static method method(self::A a) → void { self::B|staticField = a; a = self::B|staticMethod(); () → self::A f4 = #C1; - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); (T%) → T% f5 = #C2; (core::String) → core::String f6 = #C3; b1 = self::B|staticGetter; diff --git a/pkg/front_end/testcases/inline_class/external.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/external.dart.weak.outline.expect index 1610c586c03..f3df24852d7 100644 --- a/pkg/front_end/testcases/inline_class/external.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/external.dart.weak.outline.expect @@ -26,27 +26,27 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T%) → T% +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T%) → T% return (T% t) → T% => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void ; diff --git a/pkg/front_end/testcases/inline_class/external.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/external.dart.weak.transformed.expect index 871cadbba0e..fc3037a9b73 100644 --- a/pkg/front_end/testcases/inline_class/external.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/external.dart.weak.transformed.expect @@ -27,36 +27,36 @@ extension type B(self::A a) { constructor named = self::B|named; tearoff named = self::B|_#named#tearOff; } -external static inline-class-member method B|(self::A a) → self::B; -static inline-class-member method B|_#new#tearOff(self::A a) → self::B +external static inline-class-member method B|(self::A a) → self::B /* = self::A */; +static inline-class-member method B|_#new#tearOff(self::A a) → self::B /* = self::A */ return self::B|(a); -external static inline-class-member method B|named(core::int i) → self::B; -static inline-class-member method B|_#named#tearOff(core::int i) → self::B +external static inline-class-member method B|named(core::int i) → self::B /* = self::A */; +static inline-class-member method B|_#named#tearOff(core::int i) → self::B /* = self::A */ return self::B|named(i); external static inline-class-member method B|get#field(lowered self::A #this) → self::A; external static inline-class-member method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void; -external static inline-class-member method B|method(lowered final self::B #this) → self::A; -static inline-class-member method B|get#method(lowered final self::B #this) → () → self::A +external static inline-class-member method B|method(lowered final self::B /* = self::A */ #this) → self::A; +static inline-class-member method B|get#method(lowered final self::B /* = self::A */ #this) → () → self::A return () → self::A => self::B|method(#this); -external static inline-class-member method B|genericMethod(lowered final self::B #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; -static inline-class-member method B|get#genericMethod(lowered final self::B #this) → (T%) → T% +external static inline-class-member method B|genericMethod(lowered final self::B /* = self::A */ #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; +static inline-class-member method B|get#genericMethod(lowered final self::B /* = self::A */ #this) → (T%) → T% return (T% t) → T% => self::B|genericMethod(#this, t); -external static inline-class-member method B|get#getter(lowered final self::B #this) → self::B; -external static inline-class-member method B|set#setter(lowered final self::B #this, self::B b) → void; +external static inline-class-member method B|get#getter(lowered final self::B /* = self::A */ #this) → self::B /* = self::A */; +external static inline-class-member method B|set#setter(lowered final self::B /* = self::A */ #this, self::B /* = self::A */ b) → void; external static inline-class-member get B|staticField() → self::A; external static inline-class-member set B|staticField(self::A #externalFieldValue) → void; external static inline-class-member method B|staticMethod() → self::A; external static inline-class-member method B|staticGenericMethod(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static inline-class-member get B|staticGetter() → self::B; -external static inline-class-member set B|staticSetter(self::B b) → void; +external static inline-class-member get B|staticGetter() → self::B /* = self::A */; +external static inline-class-member set B|staticSetter(self::B /* = self::A */ b) → void; static method method(self::A a) → void { - self::B b1 = self::B|(a); - self::B b2 = self::B|named(0); + self::B /* = self::A */ b1 = self::B|(a); + self::B /* = self::A */ b2 = self::B|named(0); a = self::B|get#field(b1); self::B|set#field(b1, a); a = self::B|method(b1); () → self::A f1 = self::B|get#method(b1); - b2 = self::B|genericMethod(b2, b2); + b2 = self::B|genericMethod(b2, b2); (T%) → T% f2 = self::B|get#genericMethod(b2); (core::int) → core::int f3 = self::B|get#genericMethod(b2); b1 = self::B|get#getter(b2); @@ -65,7 +65,7 @@ static method method(self::A a) → void { self::B|staticField = a; a = self::B|staticMethod(); () → self::A f4 = #C1; - b2 = self::B|staticGenericMethod(b2); + b2 = self::B|staticGenericMethod(b2); (T%) → T% f5 = #C2; (core::String) → core::String f6 = #C3; b1 = self::B|staticGetter; diff --git a/pkg/front_end/testcases/inline_class/field_access.dart.strong.expect b/pkg/front_end/testcases/inline_class/field_access.dart.strong.expect index 800705fe1ab..31e5e2cf150 100644 --- a/pkg/front_end/testcases/inline_class/field_access.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/field_access.dart.strong.expect @@ -337,13 +337,13 @@ extension type ErroneousInlineClass(core::int a) { tearoff • = self::ErroneousInlineClass|_#new#tearOff; } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void {} -static inline-class-member method InlineClass|(core::int it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:19:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -363,15 +363,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = 42; // Error, should not resolve to extension method. ^^" in #this{}.it = 42; } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass { - lowered final self::GenericInlineClass #this = it; +static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ { + lowered final self::GenericInlineClass /* = self::GenericInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void { +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void { self::GenericInlineClass|test::T% a1 = #this as{Unchecked} self::GenericInlineClass|test::T%; self::GenericInlineClass|test::T% a2 = #this as{Unchecked} self::GenericInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:34:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'. @@ -391,15 +391,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = t; // Error, should not resolve to extension method. ^^" in #this{}.it = t; } -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass { - lowered final self::FunctionInlineClass #this = it; +static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ { + lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void { +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void { () → self::FunctionInlineClass|test::T% a1 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; () → self::FunctionInlineClass|test::T% a2 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:49:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'. @@ -423,15 +423,15 @@ Try correcting the name to the name of an existing setter, or defining a setter self::FunctionInlineClass|test::T% d3 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; self::FunctionInlineClass|test::T% d4 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; } -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass { - lowered final self::GenericFunctionInlineClass #this = it; +static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ { + lowered final self::GenericFunctionInlineClass /* = () → T% */ #this = it; return #this; } -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void { +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void { () → T% a1 = #this as{Unchecked} () → T%; () → T% a2 = #this as{Unchecked} () → T%; () → core::int a3 = (#this as{Unchecked} () → T%); @@ -459,15 +459,15 @@ Try correcting the name to the name of an existing getter, or defining a getter core::int e1 = (#this as{Unchecked} () → T%)(){() → core::int}; core::int e2 = (#this as{Unchecked} () → T%)(){() → core::int}; } -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass { - lowered final self::DynamicInlineClass #this = it; +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ { + lowered final self::DynamicInlineClass /* = dynamic */ #this = it; return #this; } -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void { +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void { dynamic a1 = #this as{Unchecked} dynamic; dynamic a2 = #this as{Unchecked} dynamic; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:92:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'. @@ -491,15 +491,15 @@ Try correcting the name to the name of an existing setter, or defining a setter dynamic d3 = (#this as{Unchecked} dynamic){dynamic}.call(); dynamic d4 = (#this as{Unchecked} dynamic){dynamic}.call(); } -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass { - lowered final self::ErroneousInlineClass #this = b; +static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ { + lowered final self::ErroneousInlineClass /* = core::int */ #this = b; return #this; } -static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void { +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; dynamic a3 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:112:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'. @@ -575,9 +575,9 @@ Try correcting the name to the name of an existing getter, or defining a getter var e4 = b.call(); // Error ^" in #this{}.b{dynamic}.call(); } -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void { +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void { core::int a1 = inlineClass as{Unchecked} core::int; invalid-type a2 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:143:26: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. Try changing the operand or remove the type arguments. @@ -694,13 +694,13 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass { - lowered final self2::PrivateInlineClass #this = _it; +static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass /* = core::int */ { + lowered final self2::PrivateInlineClass /* = core::int */ #this = _it; return #this; } -static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void { +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access_lib.dart:13:22: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -720,5 +720,5 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = _it = 42; // Error, should not resolve to extension method. ^^^" in #this{}._it = 42; } -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/field_access.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/field_access.dart.strong.transformed.expect index 800705fe1ab..31e5e2cf150 100644 --- a/pkg/front_end/testcases/inline_class/field_access.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/field_access.dart.strong.transformed.expect @@ -337,13 +337,13 @@ extension type ErroneousInlineClass(core::int a) { tearoff • = self::ErroneousInlineClass|_#new#tearOff; } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void {} -static inline-class-member method InlineClass|(core::int it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:19:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -363,15 +363,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = 42; // Error, should not resolve to extension method. ^^" in #this{}.it = 42; } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass { - lowered final self::GenericInlineClass #this = it; +static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ { + lowered final self::GenericInlineClass /* = self::GenericInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void { +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void { self::GenericInlineClass|test::T% a1 = #this as{Unchecked} self::GenericInlineClass|test::T%; self::GenericInlineClass|test::T% a2 = #this as{Unchecked} self::GenericInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:34:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'. @@ -391,15 +391,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = t; // Error, should not resolve to extension method. ^^" in #this{}.it = t; } -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass { - lowered final self::FunctionInlineClass #this = it; +static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ { + lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void { +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void { () → self::FunctionInlineClass|test::T% a1 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; () → self::FunctionInlineClass|test::T% a2 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:49:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'. @@ -423,15 +423,15 @@ Try correcting the name to the name of an existing setter, or defining a setter self::FunctionInlineClass|test::T% d3 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; self::FunctionInlineClass|test::T% d4 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; } -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass { - lowered final self::GenericFunctionInlineClass #this = it; +static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ { + lowered final self::GenericFunctionInlineClass /* = () → T% */ #this = it; return #this; } -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void { +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void { () → T% a1 = #this as{Unchecked} () → T%; () → T% a2 = #this as{Unchecked} () → T%; () → core::int a3 = (#this as{Unchecked} () → T%); @@ -459,15 +459,15 @@ Try correcting the name to the name of an existing getter, or defining a getter core::int e1 = (#this as{Unchecked} () → T%)(){() → core::int}; core::int e2 = (#this as{Unchecked} () → T%)(){() → core::int}; } -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass { - lowered final self::DynamicInlineClass #this = it; +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ { + lowered final self::DynamicInlineClass /* = dynamic */ #this = it; return #this; } -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void { +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void { dynamic a1 = #this as{Unchecked} dynamic; dynamic a2 = #this as{Unchecked} dynamic; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:92:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'. @@ -491,15 +491,15 @@ Try correcting the name to the name of an existing setter, or defining a setter dynamic d3 = (#this as{Unchecked} dynamic){dynamic}.call(); dynamic d4 = (#this as{Unchecked} dynamic){dynamic}.call(); } -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass { - lowered final self::ErroneousInlineClass #this = b; +static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ { + lowered final self::ErroneousInlineClass /* = core::int */ #this = b; return #this; } -static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void { +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; dynamic a3 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:112:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'. @@ -575,9 +575,9 @@ Try correcting the name to the name of an existing getter, or defining a getter var e4 = b.call(); // Error ^" in #this{}.b{dynamic}.call(); } -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void { +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void { core::int a1 = inlineClass as{Unchecked} core::int; invalid-type a2 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:143:26: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. Try changing the operand or remove the type arguments. @@ -694,13 +694,13 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass { - lowered final self2::PrivateInlineClass #this = _it; +static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass /* = core::int */ { + lowered final self2::PrivateInlineClass /* = core::int */ #this = _it; return #this; } -static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void { +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access_lib.dart:13:22: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -720,5 +720,5 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = _it = 42; // Error, should not resolve to extension method. ^^^" in #this{}._it = 42; } -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/field_access.dart.weak.expect b/pkg/front_end/testcases/inline_class/field_access.dart.weak.expect index 800705fe1ab..31e5e2cf150 100644 --- a/pkg/front_end/testcases/inline_class/field_access.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/field_access.dart.weak.expect @@ -337,13 +337,13 @@ extension type ErroneousInlineClass(core::int a) { tearoff • = self::ErroneousInlineClass|_#new#tearOff; } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void {} -static inline-class-member method InlineClass|(core::int it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:19:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -363,15 +363,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = 42; // Error, should not resolve to extension method. ^^" in #this{}.it = 42; } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass { - lowered final self::GenericInlineClass #this = it; +static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ { + lowered final self::GenericInlineClass /* = self::GenericInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void { +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void { self::GenericInlineClass|test::T% a1 = #this as{Unchecked} self::GenericInlineClass|test::T%; self::GenericInlineClass|test::T% a2 = #this as{Unchecked} self::GenericInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:34:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'. @@ -391,15 +391,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = t; // Error, should not resolve to extension method. ^^" in #this{}.it = t; } -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass { - lowered final self::FunctionInlineClass #this = it; +static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ { + lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void { +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void { () → self::FunctionInlineClass|test::T% a1 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; () → self::FunctionInlineClass|test::T% a2 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:49:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'. @@ -423,15 +423,15 @@ Try correcting the name to the name of an existing setter, or defining a setter self::FunctionInlineClass|test::T% d3 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; self::FunctionInlineClass|test::T% d4 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; } -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass { - lowered final self::GenericFunctionInlineClass #this = it; +static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ { + lowered final self::GenericFunctionInlineClass /* = () → T% */ #this = it; return #this; } -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void { +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void { () → T% a1 = #this as{Unchecked} () → T%; () → T% a2 = #this as{Unchecked} () → T%; () → core::int a3 = (#this as{Unchecked} () → T%); @@ -459,15 +459,15 @@ Try correcting the name to the name of an existing getter, or defining a getter core::int e1 = (#this as{Unchecked} () → T%)(){() → core::int}; core::int e2 = (#this as{Unchecked} () → T%)(){() → core::int}; } -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass { - lowered final self::DynamicInlineClass #this = it; +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ { + lowered final self::DynamicInlineClass /* = dynamic */ #this = it; return #this; } -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void { +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void { dynamic a1 = #this as{Unchecked} dynamic; dynamic a2 = #this as{Unchecked} dynamic; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:92:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'. @@ -491,15 +491,15 @@ Try correcting the name to the name of an existing setter, or defining a setter dynamic d3 = (#this as{Unchecked} dynamic){dynamic}.call(); dynamic d4 = (#this as{Unchecked} dynamic){dynamic}.call(); } -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass { - lowered final self::ErroneousInlineClass #this = b; +static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ { + lowered final self::ErroneousInlineClass /* = core::int */ #this = b; return #this; } -static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void { +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; dynamic a3 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:112:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'. @@ -575,9 +575,9 @@ Try correcting the name to the name of an existing getter, or defining a getter var e4 = b.call(); // Error ^" in #this{}.b{dynamic}.call(); } -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void { +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void { core::int a1 = inlineClass as{Unchecked} core::int; invalid-type a2 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:143:26: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. Try changing the operand or remove the type arguments. @@ -694,13 +694,13 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass { - lowered final self2::PrivateInlineClass #this = _it; +static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass /* = core::int */ { + lowered final self2::PrivateInlineClass /* = core::int */ #this = _it; return #this; } -static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void { +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access_lib.dart:13:22: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -720,5 +720,5 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = _it = 42; // Error, should not resolve to extension method. ^^^" in #this{}._it = 42; } -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/field_access.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/field_access.dart.weak.modular.expect index 800705fe1ab..31e5e2cf150 100644 --- a/pkg/front_end/testcases/inline_class/field_access.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/field_access.dart.weak.modular.expect @@ -337,13 +337,13 @@ extension type ErroneousInlineClass(core::int a) { tearoff • = self::ErroneousInlineClass|_#new#tearOff; } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void {} -static inline-class-member method InlineClass|(core::int it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:19:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -363,15 +363,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = 42; // Error, should not resolve to extension method. ^^" in #this{}.it = 42; } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass { - lowered final self::GenericInlineClass #this = it; +static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ { + lowered final self::GenericInlineClass /* = self::GenericInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void { +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void { self::GenericInlineClass|test::T% a1 = #this as{Unchecked} self::GenericInlineClass|test::T%; self::GenericInlineClass|test::T% a2 = #this as{Unchecked} self::GenericInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:34:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'. @@ -391,15 +391,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = t; // Error, should not resolve to extension method. ^^" in #this{}.it = t; } -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass { - lowered final self::FunctionInlineClass #this = it; +static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ { + lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void { +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void { () → self::FunctionInlineClass|test::T% a1 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; () → self::FunctionInlineClass|test::T% a2 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:49:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'. @@ -423,15 +423,15 @@ Try correcting the name to the name of an existing setter, or defining a setter self::FunctionInlineClass|test::T% d3 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; self::FunctionInlineClass|test::T% d4 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; } -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass { - lowered final self::GenericFunctionInlineClass #this = it; +static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ { + lowered final self::GenericFunctionInlineClass /* = () → T% */ #this = it; return #this; } -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void { +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void { () → T% a1 = #this as{Unchecked} () → T%; () → T% a2 = #this as{Unchecked} () → T%; () → core::int a3 = (#this as{Unchecked} () → T%); @@ -459,15 +459,15 @@ Try correcting the name to the name of an existing getter, or defining a getter core::int e1 = (#this as{Unchecked} () → T%)(){() → core::int}; core::int e2 = (#this as{Unchecked} () → T%)(){() → core::int}; } -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass { - lowered final self::DynamicInlineClass #this = it; +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ { + lowered final self::DynamicInlineClass /* = dynamic */ #this = it; return #this; } -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void { +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void { dynamic a1 = #this as{Unchecked} dynamic; dynamic a2 = #this as{Unchecked} dynamic; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:92:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'. @@ -491,15 +491,15 @@ Try correcting the name to the name of an existing setter, or defining a setter dynamic d3 = (#this as{Unchecked} dynamic){dynamic}.call(); dynamic d4 = (#this as{Unchecked} dynamic){dynamic}.call(); } -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass { - lowered final self::ErroneousInlineClass #this = b; +static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ { + lowered final self::ErroneousInlineClass /* = core::int */ #this = b; return #this; } -static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void { +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; dynamic a3 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:112:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'. @@ -575,9 +575,9 @@ Try correcting the name to the name of an existing getter, or defining a getter var e4 = b.call(); // Error ^" in #this{}.b{dynamic}.call(); } -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void { +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void { core::int a1 = inlineClass as{Unchecked} core::int; invalid-type a2 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:143:26: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. Try changing the operand or remove the type arguments. @@ -694,13 +694,13 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass { - lowered final self2::PrivateInlineClass #this = _it; +static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass /* = core::int */ { + lowered final self2::PrivateInlineClass /* = core::int */ #this = _it; return #this; } -static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void { +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access_lib.dart:13:22: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -720,5 +720,5 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = _it = 42; // Error, should not resolve to extension method. ^^^" in #this{}._it = 42; } -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/field_access.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/field_access.dart.weak.outline.expect index ec6b1120868..edb97556fa3 100644 --- a/pkg/front_end/testcases/inline_class/field_access.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/field_access.dart.weak.outline.expect @@ -45,55 +45,55 @@ extension type ErroneousInlineClass(core::int a) { } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void ; -static inline-class-member method InlineClass|(core::int it) → self::InlineClass +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ ; -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void ; -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ ; -static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void ; -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ ; -static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void ; -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ ; -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void ; -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ ; -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void ; -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ ; -static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void ; -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void ; library; @@ -106,11 +106,11 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass /* = core::int */ ; -static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void ; -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/field_access.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/field_access.dart.weak.transformed.expect index 800705fe1ab..31e5e2cf150 100644 --- a/pkg/front_end/testcases/inline_class/field_access.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/field_access.dart.weak.transformed.expect @@ -337,13 +337,13 @@ extension type ErroneousInlineClass(core::int a) { tearoff • = self::ErroneousInlineClass|_#new#tearOff; } static extension-member method _extension#0|set#it(lowered final dynamic #this, dynamic value) → void {} -static inline-class-member method InlineClass|(core::int it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → void { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:19:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -363,15 +363,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = 42; // Error, should not resolve to extension method. ^^" in #this{}.it = 42; } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → void return () → void => self::InlineClass|test(#this); -static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass { - lowered final self::GenericInlineClass #this = it; +static inline-class-member method GenericInlineClass|(self::GenericInlineClass|::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|::T% */ { + lowered final self::GenericInlineClass /* = self::GenericInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass +static inline-class-member method GenericInlineClass|_#new#tearOff(self::GenericInlineClass|_#new#tearOff::T% it) → self::GenericInlineClass /* = self::GenericInlineClass|_#new#tearOff::T% */ return self::GenericInlineClass|(it); -static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass #this, self::GenericInlineClass|test::T% t) → void { +static inline-class-member method GenericInlineClass|test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|test::T% */ #this, self::GenericInlineClass|test::T% t) → void { self::GenericInlineClass|test::T% a1 = #this as{Unchecked} self::GenericInlineClass|test::T%; self::GenericInlineClass|test::T% a2 = #this as{Unchecked} self::GenericInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:34:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'. @@ -391,15 +391,15 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = it = t; // Error, should not resolve to extension method. ^^" in #this{}.it = t; } -static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass #this) → (self::GenericInlineClass|get#test::T%) → void +static inline-class-member method GenericInlineClass|get#test(lowered final self::GenericInlineClass /* = self::GenericInlineClass|get#test::T% */ #this) → (self::GenericInlineClass|get#test::T%) → void return (self::GenericInlineClass|get#test::T% t) → void => self::GenericInlineClass|test(#this, t); -static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass { - lowered final self::FunctionInlineClass #this = it; +static inline-class-member method FunctionInlineClass|(() → self::FunctionInlineClass|::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ { + lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|::T% */ #this = it; return #this; } -static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass +static inline-class-member method FunctionInlineClass|_#new#tearOff(() → self::FunctionInlineClass|_#new#tearOff::T% it) → self::FunctionInlineClass /* = () → self::FunctionInlineClass|_#new#tearOff::T% */ return self::FunctionInlineClass|(it); -static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass #this, () → self::FunctionInlineClass|test::T% t) → void { +static inline-class-member method FunctionInlineClass|test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|test::T% */ #this, () → self::FunctionInlineClass|test::T% t) → void { () → self::FunctionInlineClass|test::T% a1 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; () → self::FunctionInlineClass|test::T% a2 = #this as{Unchecked} () → self::FunctionInlineClass|test::T%; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:49:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'. @@ -423,15 +423,15 @@ Try correcting the name to the name of an existing setter, or defining a setter self::FunctionInlineClass|test::T% d3 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; self::FunctionInlineClass|test::T% d4 = (#this as{Unchecked} () → self::FunctionInlineClass|test::T%)(){() → self::FunctionInlineClass|test::T%}; } -static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass #this) → (() → self::FunctionInlineClass|get#test::T%) → void +static inline-class-member method FunctionInlineClass|get#test(lowered final self::FunctionInlineClass /* = () → self::FunctionInlineClass|get#test::T% */ #this) → (() → self::FunctionInlineClass|get#test::T%) → void return (() → self::FunctionInlineClass|get#test::T% t) → void => self::FunctionInlineClass|test(#this, t); -static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass { - lowered final self::GenericFunctionInlineClass #this = it; +static inline-class-member method GenericFunctionInlineClass|(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ { + lowered final self::GenericFunctionInlineClass /* = () → T% */ #this = it; return #this; } -static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass +static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(() → T% it) → self::GenericFunctionInlineClass /* = () → T% */ return self::GenericFunctionInlineClass|(it); -static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void { +static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → void { () → T% a1 = #this as{Unchecked} () → T%; () → T% a2 = #this as{Unchecked} () → T%; () → core::int a3 = (#this as{Unchecked} () → T%); @@ -459,15 +459,15 @@ Try correcting the name to the name of an existing getter, or defining a getter core::int e1 = (#this as{Unchecked} () → T%)(){() → core::int}; core::int e2 = (#this as{Unchecked} () → T%)(){() → core::int}; } -static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void +static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass /* = () → T% */ #this) → () → void return () → void => self::GenericFunctionInlineClass|test(#this); -static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass { - lowered final self::DynamicInlineClass #this = it; +static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass /* = dynamic */ { + lowered final self::DynamicInlineClass /* = dynamic */ #this = it; return #this; } -static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass +static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass /* = dynamic */ return self::DynamicInlineClass|(it); -static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #this) → void { +static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → void { dynamic a1 = #this as{Unchecked} dynamic; dynamic a2 = #this as{Unchecked} dynamic; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:92:21: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'. @@ -491,15 +491,15 @@ Try correcting the name to the name of an existing setter, or defining a setter dynamic d3 = (#this as{Unchecked} dynamic){dynamic}.call(); dynamic d4 = (#this as{Unchecked} dynamic){dynamic}.call(); } -static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass #this) → () → void +static inline-class-member method DynamicInlineClass|get#test(lowered final self::DynamicInlineClass /* = dynamic */ #this) → () → void return () → void => self::DynamicInlineClass|test(#this); -static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass { - lowered final self::ErroneousInlineClass #this = b; +static inline-class-member method ErroneousInlineClass|(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ { + lowered final self::ErroneousInlineClass /* = core::int */ #this = b; return #this; } -static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass +static inline-class-member method ErroneousInlineClass|_#new#tearOff(core::int a, core::String b) → self::ErroneousInlineClass /* = core::int */ return self::ErroneousInlineClass|(a, b); -static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #this) → void { +static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; dynamic a3 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:112:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'. @@ -575,9 +575,9 @@ Try correcting the name to the name of an existing getter, or defining a getter var e4 = b.call(); // Error ^" in #this{}.b{dynamic}.call(); } -static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void +static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass /* = core::int */ #this) → () → void return () → void => self::ErroneousInlineClass|test(#this); -static method test(self::InlineClass inlineClass, self::GenericInlineClass genericInlineClass, self::FunctionInlineClass functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass privateInlineClass) → void { +static method test(self::InlineClass /* = core::int */ inlineClass, self::GenericInlineClass /* = core::String */ genericInlineClass, self::FunctionInlineClass /* = () → core::String */ functionInlineClass, self::GenericFunctionInlineClass /* = () → T% */ genericFunctionInlineClass, self::DynamicInlineClass /* = dynamic */ dynamicInlineClass, self::ErroneousInlineClass /* = core::int */ erroneousInlineClass, #lib1::PrivateInlineClass /* = core::int */ privateInlineClass) → void { core::int a1 = inlineClass as{Unchecked} core::int; invalid-type a2 = invalid-expression "pkg/front_end/testcases/inline_class/field_access.dart:143:26: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. Try changing the operand or remove the type arguments. @@ -694,13 +694,13 @@ extension type PrivateInlineClass(core::int _it) { constructor • = self2::PrivateInlineClass|; tearoff • = self2::PrivateInlineClass|_#new#tearOff; } -static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass { - lowered final self2::PrivateInlineClass #this = _it; +static inline-class-member method PrivateInlineClass|(core::int _it) → self2::PrivateInlineClass /* = core::int */ { + lowered final self2::PrivateInlineClass /* = core::int */ #this = _it; return #this; } -static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass +static inline-class-member method PrivateInlineClass|_#new#tearOff(core::int _it) → self2::PrivateInlineClass /* = core::int */ return self2::PrivateInlineClass|(_it); -static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #this) → void { +static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → void { core::int a1 = #this as{Unchecked} core::int; core::int a2 = #this as{Unchecked} core::int; invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/field_access_lib.dart:13:22: Error: The static type of the explicit instantiation operand must be a generic function type but is 'int'. @@ -720,5 +720,5 @@ Try correcting the name to the name of an existing setter, or defining a setter var c2 = _it = 42; // Error, should not resolve to extension method. ^^^" in #this{}._it = 42; } -static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void +static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass /* = core::int */ #this) → () → void return () → void => self2::PrivateInlineClass|test(#this); diff --git a/pkg/front_end/testcases/inline_class/has_export.dart.strong.expect b/pkg/front_end/testcases/inline_class/has_export.dart.strong.expect index 2d79433486f..ac457c496fe 100644 --- a/pkg/front_end/testcases/inline_class/has_export.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/has_export.dart.strong.expect @@ -16,9 +16,9 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C { - lowered final has::C #this = i; +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C /* = core::int */ { + lowered final has::C /* = core::int */ #this = i; return #this; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/has_export.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/has_export.dart.strong.transformed.expect index 2d79433486f..ac457c496fe 100644 --- a/pkg/front_end/testcases/inline_class/has_export.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/has_export.dart.strong.transformed.expect @@ -16,9 +16,9 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C { - lowered final has::C #this = i; +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C /* = core::int */ { + lowered final has::C /* = core::int */ #this = i; return #this; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/has_export.dart.weak.expect b/pkg/front_end/testcases/inline_class/has_export.dart.weak.expect index 2d79433486f..ac457c496fe 100644 --- a/pkg/front_end/testcases/inline_class/has_export.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/has_export.dart.weak.expect @@ -16,9 +16,9 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C { - lowered final has::C #this = i; +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C /* = core::int */ { + lowered final has::C /* = core::int */ #this = i; return #this; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/has_export.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/has_export.dart.weak.modular.expect index 2d79433486f..ac457c496fe 100644 --- a/pkg/front_end/testcases/inline_class/has_export.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/has_export.dart.weak.modular.expect @@ -16,9 +16,9 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C { - lowered final has::C #this = i; +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C /* = core::int */ { + lowered final has::C /* = core::int */ #this = i; return #this; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/has_export.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/has_export.dart.weak.outline.expect index 0befba66733..2814bf262e7 100644 --- a/pkg/front_end/testcases/inline_class/has_export.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/has_export.dart.weak.outline.expect @@ -17,7 +17,7 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C /* = core::int */ ; -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/has_export.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/has_export.dart.weak.transformed.expect index 2d79433486f..ac457c496fe 100644 --- a/pkg/front_end/testcases/inline_class/has_export.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/has_export.dart.weak.transformed.expect @@ -16,9 +16,9 @@ extension type C(core::int i) { // from org-dartlang-testcase:///has_part_of_lib constructor • = has::C|; tearoff • = has::_#new#tearOff; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C { - lowered final has::C #this = i; +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ C|(core::int i) → has::C /* = core::int */ { + lowered final has::C /* = core::int */ #this = i; return #this; } -static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C +static inline-class-member method /* from org-dartlang-testcase:///has_part_of_lib.dart */ _#new#tearOff(core::int i) → has::C /* = core::int */ return has::C|(i); diff --git a/pkg/front_end/testcases/inline_class/implements.dart.strong.expect b/pkg/front_end/testcases/inline_class/implements.dart.strong.expect index 4fad823f754..1b7e2ff088c 100644 --- a/pkg/front_end/testcases/inline_class/implements.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/implements.dart.strong.expect @@ -212,75 +212,75 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(core::int it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(core::int it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(core::int it) → self::A +static inline-class-member method A|_#new#tearOff(core::int it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(5){(core::num) → core::int}; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(self::B|::T% it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(self::B|::T% it) → self::B /* = self::B|::T% */ { + lowered final self::B /* = self::B|::T% */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B +static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% return #this as{Unchecked} self::B|methodB::T%; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(core::int it) → self::C1 { - lowered final self::C1 #this = it; +static inline-class-member method C1|(core::int it) → self::C1 /* = core::int */ { + lowered final self::C1 /* = core::int */ #this = it; return #this; } -static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 +static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(42){(core::num) → core::int}; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(core::int it) → self::C2 { - lowered final self::C2 #this = it; +static inline-class-member method C2|(core::int it) → self::C2 /* = core::int */ { + lowered final self::C2 /* = core::int */ #this = it; return #this; } -static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 +static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(87){(core::num) → core::int}; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(core::int it) → self::D1 { - lowered final self::D1 #this = it; +static inline-class-member method D1|(core::int it) → self::D1 /* = core::int */ { + lowered final self::D1 /* = core::int */ #this = it; return #this; } -static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 +static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(123){(core::num) → core::int}; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:46:5: Error: The method 'methodB' isn't defined for the class 'A'. Try correcting the name to the name of an existing method, or defining a method named 'methodB'. a.methodB(); // Error @@ -359,81 +359,81 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^" in d1{}.methodC2(); a = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:71:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b1; // Error - ^" in b1 as{TypeError} self::A; + ^" in b1 as{TypeError} self::A /* = core::int */; a = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:72:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b2; // Error - ^" in b2 as{TypeError} self::A; + ^" in b2 as{TypeError} self::A /* = core::int */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:74:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b1 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:75:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b1 = b2; // Error - ^" in b2 as{TypeError} self::B; + ^" in b2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:76:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b1 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:77:8: Error: A value of type 'C2' can't be assigned to a variable of type 'B'. b1 = c2; // Error - ^" in c2 as{TypeError} self::B; + ^" in c2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:78:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b1 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::String */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:80:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b2 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:81:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b2 = b1; // Error - ^" in b1 as{TypeError} self::B; + ^" in b1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:82:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b2 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:83:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b2 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::num */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:85:8: Error: A value of type 'A' can't be assigned to a variable of type 'C1'. c1 = a; // Error - ^" in a as{TypeError} self::C1; + ^" in a as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:86:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b1; // Error - ^" in b1 as{TypeError} self::C1; + ^" in b1 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:87:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b2; // Error - ^" in b2 as{TypeError} self::C1; + ^" in b2 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:88:8: Error: A value of type 'C2' can't be assigned to a variable of type 'C1'. c1 = c2; // Error - ^" in c2 as{TypeError} self::C1; + ^" in c2 as{TypeError} self::C1 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:90:8: Error: A value of type 'A' can't be assigned to a variable of type 'C2'. c2 = a; // Error - ^" in a as{TypeError} self::C2; + ^" in a as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:91:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b1; // Error - ^" in b1 as{TypeError} self::C2; + ^" in b1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:92:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b2; // Error - ^" in b2 as{TypeError} self::C2; + ^" in b2 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:93:8: Error: A value of type 'C1' can't be assigned to a variable of type 'C2'. c2 = c1; // Error - ^" in c1 as{TypeError} self::C2; + ^" in c1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:94:8: Error: A value of type 'D1' can't be assigned to a variable of type 'C2'. c2 = d1; // Error - ^" in d1 as{TypeError} self::C2; + ^" in d1 as{TypeError} self::C2 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:96:8: Error: A value of type 'A' can't be assigned to a variable of type 'D1'. d1 = a; // Error - ^" in a as{TypeError} self::D1; + ^" in a as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:97:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b1; // Error - ^" in b1 as{TypeError} self::D1; + ^" in b1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:98:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b2; // Error - ^" in b2 as{TypeError} self::D1; + ^" in b2 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:99:8: Error: A value of type 'C1' can't be assigned to a variable of type 'D1'. d1 = c1; // Error - ^" in c1 as{TypeError} self::D1; + ^" in c1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:100:8: Error: A value of type 'C2' can't be assigned to a variable of type 'D1'. d1 = c2; // Error - ^" in c2 as{TypeError} self::D1; + ^" in c2 as{TypeError} self::D1 /* = core::int */; } -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { self::expect(0.{core::num::+}(5){(core::num) → core::int}, self::A|methodA(a)); self::expect("0", self::B|methodB(b1)); self::expect(1.{core::num::+}(0){(core::num) → core::int}, self::B|methodB(b2)); diff --git a/pkg/front_end/testcases/inline_class/implements.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/implements.dart.strong.transformed.expect index f0dd5bbf4ec..9220e9b3f08 100644 --- a/pkg/front_end/testcases/inline_class/implements.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/implements.dart.strong.transformed.expect @@ -212,75 +212,75 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(core::int it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(core::int it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(core::int it) → self::A +static inline-class-member method A|_#new#tearOff(core::int it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(5){(core::num) → core::int}; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(self::B|::T% it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(self::B|::T% it) → self::B /* = self::B|::T% */ { + lowered final self::B /* = self::B|::T% */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B +static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% return #this as{Unchecked} self::B|methodB::T%; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(core::int it) → self::C1 { - lowered final self::C1 #this = it; +static inline-class-member method C1|(core::int it) → self::C1 /* = core::int */ { + lowered final self::C1 /* = core::int */ #this = it; return #this; } -static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 +static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(42){(core::num) → core::int}; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(core::int it) → self::C2 { - lowered final self::C2 #this = it; +static inline-class-member method C2|(core::int it) → self::C2 /* = core::int */ { + lowered final self::C2 /* = core::int */ #this = it; return #this; } -static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 +static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(87){(core::num) → core::int}; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(core::int it) → self::D1 { - lowered final self::D1 #this = it; +static inline-class-member method D1|(core::int it) → self::D1 /* = core::int */ { + lowered final self::D1 /* = core::int */ #this = it; return #this; } -static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 +static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(123){(core::num) → core::int}; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:46:5: Error: The method 'methodB' isn't defined for the class 'A'. Try correcting the name to the name of an existing method, or defining a method named 'methodB'. a.methodB(); // Error @@ -359,81 +359,81 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^" in d1{}.methodC2(); a = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:71:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b1; // Error - ^" in b1 as{TypeError} self::A; + ^" in b1 as{TypeError} self::A /* = core::int */; a = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:72:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b2; // Error - ^" in b2 as{TypeError} self::A; + ^" in b2 as{TypeError} self::A /* = core::int */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:74:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b1 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:75:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b1 = b2; // Error - ^" in b2 as{TypeError} self::B; + ^" in b2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:76:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b1 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:77:8: Error: A value of type 'C2' can't be assigned to a variable of type 'B'. b1 = c2; // Error - ^" in c2 as{TypeError} self::B; + ^" in c2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:78:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b1 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::String */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:80:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b2 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:81:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b2 = b1; // Error - ^" in b1 as{TypeError} self::B; + ^" in b1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:82:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b2 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:83:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b2 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::num */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:85:8: Error: A value of type 'A' can't be assigned to a variable of type 'C1'. c1 = a; // Error - ^" in a as{TypeError} self::C1; + ^" in a as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:86:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b1; // Error - ^" in b1 as{TypeError} self::C1; + ^" in b1 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:87:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b2; // Error - ^" in b2 as{TypeError} self::C1; + ^" in b2 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:88:8: Error: A value of type 'C2' can't be assigned to a variable of type 'C1'. c1 = c2; // Error - ^" in c2 as{TypeError} self::C1; + ^" in c2 as{TypeError} self::C1 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:90:8: Error: A value of type 'A' can't be assigned to a variable of type 'C2'. c2 = a; // Error - ^" in a as{TypeError} self::C2; + ^" in a as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:91:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b1; // Error - ^" in b1 as{TypeError} self::C2; + ^" in b1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:92:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b2; // Error - ^" in b2 as{TypeError} self::C2; + ^" in b2 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:93:8: Error: A value of type 'C1' can't be assigned to a variable of type 'C2'. c2 = c1; // Error - ^" in c1 as{TypeError} self::C2; + ^" in c1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:94:8: Error: A value of type 'D1' can't be assigned to a variable of type 'C2'. c2 = d1; // Error - ^" in d1 as{TypeError} self::C2; + ^" in d1 as{TypeError} self::C2 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:96:8: Error: A value of type 'A' can't be assigned to a variable of type 'D1'. d1 = a; // Error - ^" in a as{TypeError} self::D1; + ^" in a as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:97:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b1; // Error - ^" in b1 as{TypeError} self::D1; + ^" in b1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:98:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b2; // Error - ^" in b2 as{TypeError} self::D1; + ^" in b2 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:99:8: Error: A value of type 'C1' can't be assigned to a variable of type 'D1'. d1 = c1; // Error - ^" in c1 as{TypeError} self::D1; + ^" in c1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:100:8: Error: A value of type 'C2' can't be assigned to a variable of type 'D1'. d1 = c2; // Error - ^" in c2 as{TypeError} self::D1; + ^" in c2 as{TypeError} self::D1 /* = core::int */; } -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { self::expect(0.{core::num::+}(5){(core::num) → core::int}, self::A|methodA(a)); self::expect("0", self::B|methodB(b1)); self::expect(1.{core::num::+}(0){(core::num) → core::int}, self::B|methodB(b2)); diff --git a/pkg/front_end/testcases/inline_class/implements.dart.weak.expect b/pkg/front_end/testcases/inline_class/implements.dart.weak.expect index 4fad823f754..1b7e2ff088c 100644 --- a/pkg/front_end/testcases/inline_class/implements.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/implements.dart.weak.expect @@ -212,75 +212,75 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(core::int it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(core::int it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(core::int it) → self::A +static inline-class-member method A|_#new#tearOff(core::int it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(5){(core::num) → core::int}; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(self::B|::T% it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(self::B|::T% it) → self::B /* = self::B|::T% */ { + lowered final self::B /* = self::B|::T% */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B +static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% return #this as{Unchecked} self::B|methodB::T%; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(core::int it) → self::C1 { - lowered final self::C1 #this = it; +static inline-class-member method C1|(core::int it) → self::C1 /* = core::int */ { + lowered final self::C1 /* = core::int */ #this = it; return #this; } -static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 +static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(42){(core::num) → core::int}; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(core::int it) → self::C2 { - lowered final self::C2 #this = it; +static inline-class-member method C2|(core::int it) → self::C2 /* = core::int */ { + lowered final self::C2 /* = core::int */ #this = it; return #this; } -static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 +static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(87){(core::num) → core::int}; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(core::int it) → self::D1 { - lowered final self::D1 #this = it; +static inline-class-member method D1|(core::int it) → self::D1 /* = core::int */ { + lowered final self::D1 /* = core::int */ #this = it; return #this; } -static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 +static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(123){(core::num) → core::int}; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:46:5: Error: The method 'methodB' isn't defined for the class 'A'. Try correcting the name to the name of an existing method, or defining a method named 'methodB'. a.methodB(); // Error @@ -359,81 +359,81 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^" in d1{}.methodC2(); a = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:71:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b1; // Error - ^" in b1 as{TypeError} self::A; + ^" in b1 as{TypeError} self::A /* = core::int */; a = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:72:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b2; // Error - ^" in b2 as{TypeError} self::A; + ^" in b2 as{TypeError} self::A /* = core::int */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:74:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b1 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:75:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b1 = b2; // Error - ^" in b2 as{TypeError} self::B; + ^" in b2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:76:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b1 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:77:8: Error: A value of type 'C2' can't be assigned to a variable of type 'B'. b1 = c2; // Error - ^" in c2 as{TypeError} self::B; + ^" in c2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:78:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b1 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::String */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:80:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b2 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:81:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b2 = b1; // Error - ^" in b1 as{TypeError} self::B; + ^" in b1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:82:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b2 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:83:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b2 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::num */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:85:8: Error: A value of type 'A' can't be assigned to a variable of type 'C1'. c1 = a; // Error - ^" in a as{TypeError} self::C1; + ^" in a as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:86:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b1; // Error - ^" in b1 as{TypeError} self::C1; + ^" in b1 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:87:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b2; // Error - ^" in b2 as{TypeError} self::C1; + ^" in b2 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:88:8: Error: A value of type 'C2' can't be assigned to a variable of type 'C1'. c1 = c2; // Error - ^" in c2 as{TypeError} self::C1; + ^" in c2 as{TypeError} self::C1 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:90:8: Error: A value of type 'A' can't be assigned to a variable of type 'C2'. c2 = a; // Error - ^" in a as{TypeError} self::C2; + ^" in a as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:91:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b1; // Error - ^" in b1 as{TypeError} self::C2; + ^" in b1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:92:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b2; // Error - ^" in b2 as{TypeError} self::C2; + ^" in b2 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:93:8: Error: A value of type 'C1' can't be assigned to a variable of type 'C2'. c2 = c1; // Error - ^" in c1 as{TypeError} self::C2; + ^" in c1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:94:8: Error: A value of type 'D1' can't be assigned to a variable of type 'C2'. c2 = d1; // Error - ^" in d1 as{TypeError} self::C2; + ^" in d1 as{TypeError} self::C2 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:96:8: Error: A value of type 'A' can't be assigned to a variable of type 'D1'. d1 = a; // Error - ^" in a as{TypeError} self::D1; + ^" in a as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:97:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b1; // Error - ^" in b1 as{TypeError} self::D1; + ^" in b1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:98:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b2; // Error - ^" in b2 as{TypeError} self::D1; + ^" in b2 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:99:8: Error: A value of type 'C1' can't be assigned to a variable of type 'D1'. d1 = c1; // Error - ^" in c1 as{TypeError} self::D1; + ^" in c1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:100:8: Error: A value of type 'C2' can't be assigned to a variable of type 'D1'. d1 = c2; // Error - ^" in c2 as{TypeError} self::D1; + ^" in c2 as{TypeError} self::D1 /* = core::int */; } -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { self::expect(0.{core::num::+}(5){(core::num) → core::int}, self::A|methodA(a)); self::expect("0", self::B|methodB(b1)); self::expect(1.{core::num::+}(0){(core::num) → core::int}, self::B|methodB(b2)); diff --git a/pkg/front_end/testcases/inline_class/implements.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/implements.dart.weak.modular.expect index 4fad823f754..1b7e2ff088c 100644 --- a/pkg/front_end/testcases/inline_class/implements.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/implements.dart.weak.modular.expect @@ -212,75 +212,75 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(core::int it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(core::int it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(core::int it) → self::A +static inline-class-member method A|_#new#tearOff(core::int it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(5){(core::num) → core::int}; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(self::B|::T% it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(self::B|::T% it) → self::B /* = self::B|::T% */ { + lowered final self::B /* = self::B|::T% */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B +static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% return #this as{Unchecked} self::B|methodB::T%; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(core::int it) → self::C1 { - lowered final self::C1 #this = it; +static inline-class-member method C1|(core::int it) → self::C1 /* = core::int */ { + lowered final self::C1 /* = core::int */ #this = it; return #this; } -static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 +static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(42){(core::num) → core::int}; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(core::int it) → self::C2 { - lowered final self::C2 #this = it; +static inline-class-member method C2|(core::int it) → self::C2 /* = core::int */ { + lowered final self::C2 /* = core::int */ #this = it; return #this; } -static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 +static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(87){(core::num) → core::int}; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(core::int it) → self::D1 { - lowered final self::D1 #this = it; +static inline-class-member method D1|(core::int it) → self::D1 /* = core::int */ { + lowered final self::D1 /* = core::int */ #this = it; return #this; } -static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 +static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(123){(core::num) → core::int}; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:46:5: Error: The method 'methodB' isn't defined for the class 'A'. Try correcting the name to the name of an existing method, or defining a method named 'methodB'. a.methodB(); // Error @@ -359,81 +359,81 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^" in d1{}.methodC2(); a = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:71:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b1; // Error - ^" in b1 as{TypeError} self::A; + ^" in b1 as{TypeError} self::A /* = core::int */; a = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:72:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b2; // Error - ^" in b2 as{TypeError} self::A; + ^" in b2 as{TypeError} self::A /* = core::int */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:74:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b1 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:75:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b1 = b2; // Error - ^" in b2 as{TypeError} self::B; + ^" in b2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:76:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b1 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:77:8: Error: A value of type 'C2' can't be assigned to a variable of type 'B'. b1 = c2; // Error - ^" in c2 as{TypeError} self::B; + ^" in c2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:78:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b1 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::String */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:80:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b2 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:81:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b2 = b1; // Error - ^" in b1 as{TypeError} self::B; + ^" in b1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:82:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b2 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:83:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b2 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::num */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:85:8: Error: A value of type 'A' can't be assigned to a variable of type 'C1'. c1 = a; // Error - ^" in a as{TypeError} self::C1; + ^" in a as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:86:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b1; // Error - ^" in b1 as{TypeError} self::C1; + ^" in b1 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:87:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b2; // Error - ^" in b2 as{TypeError} self::C1; + ^" in b2 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:88:8: Error: A value of type 'C2' can't be assigned to a variable of type 'C1'. c1 = c2; // Error - ^" in c2 as{TypeError} self::C1; + ^" in c2 as{TypeError} self::C1 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:90:8: Error: A value of type 'A' can't be assigned to a variable of type 'C2'. c2 = a; // Error - ^" in a as{TypeError} self::C2; + ^" in a as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:91:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b1; // Error - ^" in b1 as{TypeError} self::C2; + ^" in b1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:92:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b2; // Error - ^" in b2 as{TypeError} self::C2; + ^" in b2 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:93:8: Error: A value of type 'C1' can't be assigned to a variable of type 'C2'. c2 = c1; // Error - ^" in c1 as{TypeError} self::C2; + ^" in c1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:94:8: Error: A value of type 'D1' can't be assigned to a variable of type 'C2'. c2 = d1; // Error - ^" in d1 as{TypeError} self::C2; + ^" in d1 as{TypeError} self::C2 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:96:8: Error: A value of type 'A' can't be assigned to a variable of type 'D1'. d1 = a; // Error - ^" in a as{TypeError} self::D1; + ^" in a as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:97:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b1; // Error - ^" in b1 as{TypeError} self::D1; + ^" in b1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:98:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b2; // Error - ^" in b2 as{TypeError} self::D1; + ^" in b2 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:99:8: Error: A value of type 'C1' can't be assigned to a variable of type 'D1'. d1 = c1; // Error - ^" in c1 as{TypeError} self::D1; + ^" in c1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:100:8: Error: A value of type 'C2' can't be assigned to a variable of type 'D1'. d1 = c2; // Error - ^" in c2 as{TypeError} self::D1; + ^" in c2 as{TypeError} self::D1 /* = core::int */; } -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { self::expect(0.{core::num::+}(5){(core::num) → core::int}, self::A|methodA(a)); self::expect("0", self::B|methodB(b1)); self::expect(1.{core::num::+}(0){(core::num) → core::int}, self::B|methodB(b2)); diff --git a/pkg/front_end/testcases/inline_class/implements.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/implements.dart.weak.outline.expect index 2032ef091d8..521318d5ace 100644 --- a/pkg/front_end/testcases/inline_class/implements.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/implements.dart.weak.outline.expect @@ -14,67 +14,67 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(core::int it) → self::A +static inline-class-member method A|(core::int it) → self::A /* = core::int */ ; -static inline-class-member method A|_#new#tearOff(core::int it) → self::A +static inline-class-member method A|_#new#tearOff(core::int it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int ; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(self::B|::T% it) → self::B +static inline-class-member method B|(self::B|::T% it) → self::B /* = self::B|::T% */ ; -static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B +static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% ; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(core::int it) → self::C1 +static inline-class-member method C1|(core::int it) → self::C1 /* = core::int */ ; -static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 +static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int ; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(core::int it) → self::C2 +static inline-class-member method C2|(core::int it) → self::C2 /* = core::int */ ; -static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 +static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int ; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(core::int it) → self::D1 +static inline-class-member method D1|(core::int it) → self::D1 /* = core::int */ ; -static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 +static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int ; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic ; -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic ; static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/implements.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/implements.dart.weak.transformed.expect index f0dd5bbf4ec..9220e9b3f08 100644 --- a/pkg/front_end/testcases/inline_class/implements.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/implements.dart.weak.transformed.expect @@ -212,75 +212,75 @@ extension type B(T% it) { constructor • = self::B|; tearoff • = self::B|_#new#tearOff; } -extension type C1(core::int it) implements self::A { +extension type C1(core::int it) implements self::A /* = core::int */ { method methodC1 = self::C1|methodC1; tearoff methodC1 = self::C1|get#methodC1; constructor • = self::C1|; tearoff • = self::C1|_#new#tearOff; } -extension type C2(core::int it) implements self::A, self::B { +extension type C2(core::int it) implements self::A /* = core::int */, self::B /* = core::int */ { method methodC2 = self::C2|methodC2; tearoff methodC2 = self::C2|get#methodC2; constructor • = self::C2|; tearoff • = self::C2|_#new#tearOff; } -extension type D1(core::int it) implements self::C1 { +extension type D1(core::int it) implements self::C1 /* = core::int */ { method methodD1 = self::D1|methodD1; tearoff methodD1 = self::D1|get#methodD1; constructor • = self::D1|; tearoff • = self::D1|_#new#tearOff; } -static inline-class-member method A|(core::int it) → self::A { - lowered final self::A #this = it; +static inline-class-member method A|(core::int it) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = it; return #this; } -static inline-class-member method A|_#new#tearOff(core::int it) → self::A +static inline-class-member method A|_#new#tearOff(core::int it) → self::A /* = core::int */ return self::A|(it); -static inline-class-member method A|methodA(lowered final self::A #this) → core::int +static inline-class-member method A|methodA(lowered final self::A /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(5){(core::num) → core::int}; -static inline-class-member method A|get#methodA(lowered final self::A #this) → () → core::int +static inline-class-member method A|get#methodA(lowered final self::A /* = core::int */ #this) → () → core::int return () → core::int => self::A|methodA(#this); -static inline-class-member method B|(self::B|::T% it) → self::B { - lowered final self::B #this = it; +static inline-class-member method B|(self::B|::T% it) → self::B /* = self::B|::T% */ { + lowered final self::B /* = self::B|::T% */ #this = it; return #this; } -static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B +static inline-class-member method B|_#new#tearOff(self::B|_#new#tearOff::T% it) → self::B /* = self::B|_#new#tearOff::T% */ return self::B|(it); -static inline-class-member method B|methodB(lowered final self::B #this) → self::B|methodB::T% +static inline-class-member method B|methodB(lowered final self::B /* = self::B|methodB::T% */ #this) → self::B|methodB::T% return #this as{Unchecked} self::B|methodB::T%; -static inline-class-member method B|get#methodB(lowered final self::B #this) → () → self::B|get#methodB::T% +static inline-class-member method B|get#methodB(lowered final self::B /* = self::B|get#methodB::T% */ #this) → () → self::B|get#methodB::T% return () → self::B|get#methodB::T% => self::B|methodB(#this); -static inline-class-member method C1|(core::int it) → self::C1 { - lowered final self::C1 #this = it; +static inline-class-member method C1|(core::int it) → self::C1 /* = core::int */ { + lowered final self::C1 /* = core::int */ #this = it; return #this; } -static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 +static inline-class-member method C1|_#new#tearOff(core::int it) → self::C1 /* = core::int */ return self::C1|(it); -static inline-class-member method C1|methodC1(lowered final self::C1 #this) → core::int +static inline-class-member method C1|methodC1(lowered final self::C1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(42){(core::num) → core::int}; -static inline-class-member method C1|get#methodC1(lowered final self::C1 #this) → () → core::int +static inline-class-member method C1|get#methodC1(lowered final self::C1 /* = core::int */ #this) → () → core::int return () → core::int => self::C1|methodC1(#this); -static inline-class-member method C2|(core::int it) → self::C2 { - lowered final self::C2 #this = it; +static inline-class-member method C2|(core::int it) → self::C2 /* = core::int */ { + lowered final self::C2 /* = core::int */ #this = it; return #this; } -static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 +static inline-class-member method C2|_#new#tearOff(core::int it) → self::C2 /* = core::int */ return self::C2|(it); -static inline-class-member method C2|methodC2(lowered final self::C2 #this) → core::int +static inline-class-member method C2|methodC2(lowered final self::C2 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(87){(core::num) → core::int}; -static inline-class-member method C2|get#methodC2(lowered final self::C2 #this) → () → core::int +static inline-class-member method C2|get#methodC2(lowered final self::C2 /* = core::int */ #this) → () → core::int return () → core::int => self::C2|methodC2(#this); -static inline-class-member method D1|(core::int it) → self::D1 { - lowered final self::D1 #this = it; +static inline-class-member method D1|(core::int it) → self::D1 /* = core::int */ { + lowered final self::D1 /* = core::int */ #this = it; return #this; } -static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 +static inline-class-member method D1|_#new#tearOff(core::int it) → self::D1 /* = core::int */ return self::D1|(it); -static inline-class-member method D1|methodD1(lowered final self::D1 #this) → core::int +static inline-class-member method D1|methodD1(lowered final self::D1 /* = core::int */ #this) → core::int return (#this as{Unchecked} core::int).{core::num::+}(123){(core::num) → core::int}; -static inline-class-member method D1|get#methodD1(lowered final self::D1 #this) → () → core::int +static inline-class-member method D1|get#methodD1(lowered final self::D1 /* = core::int */ #this) → () → core::int return () → core::int => self::D1|methodD1(#this); -static method errors(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method errors(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:46:5: Error: The method 'methodB' isn't defined for the class 'A'. Try correcting the name to the name of an existing method, or defining a method named 'methodB'. a.methodB(); // Error @@ -359,81 +359,81 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^" in d1{}.methodC2(); a = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:71:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b1; // Error - ^" in b1 as{TypeError} self::A; + ^" in b1 as{TypeError} self::A /* = core::int */; a = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:72:7: Error: A value of type 'B' can't be assigned to a variable of type 'A'. a = b2; // Error - ^" in b2 as{TypeError} self::A; + ^" in b2 as{TypeError} self::A /* = core::int */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:74:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b1 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:75:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b1 = b2; // Error - ^" in b2 as{TypeError} self::B; + ^" in b2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:76:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b1 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:77:8: Error: A value of type 'C2' can't be assigned to a variable of type 'B'. b1 = c2; // Error - ^" in c2 as{TypeError} self::B; + ^" in c2 as{TypeError} self::B /* = core::String */; b1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:78:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b1 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::String */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:80:8: Error: A value of type 'A' can't be assigned to a variable of type 'B'. b2 = a; // Error - ^" in a as{TypeError} self::B; + ^" in a as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:81:8: Error: A value of type 'B' can't be assigned to a variable of type 'B'. b2 = b1; // Error - ^" in b1 as{TypeError} self::B; + ^" in b1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:82:8: Error: A value of type 'C1' can't be assigned to a variable of type 'B'. b2 = c1; // Error - ^" in c1 as{TypeError} self::B; + ^" in c1 as{TypeError} self::B /* = core::num */; b2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:83:8: Error: A value of type 'D1' can't be assigned to a variable of type 'B'. b2 = d1; // Error - ^" in d1 as{TypeError} self::B; + ^" in d1 as{TypeError} self::B /* = core::num */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:85:8: Error: A value of type 'A' can't be assigned to a variable of type 'C1'. c1 = a; // Error - ^" in a as{TypeError} self::C1; + ^" in a as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:86:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b1; // Error - ^" in b1 as{TypeError} self::C1; + ^" in b1 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:87:8: Error: A value of type 'B' can't be assigned to a variable of type 'C1'. c1 = b2; // Error - ^" in b2 as{TypeError} self::C1; + ^" in b2 as{TypeError} self::C1 /* = core::int */; c1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:88:8: Error: A value of type 'C2' can't be assigned to a variable of type 'C1'. c1 = c2; // Error - ^" in c2 as{TypeError} self::C1; + ^" in c2 as{TypeError} self::C1 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:90:8: Error: A value of type 'A' can't be assigned to a variable of type 'C2'. c2 = a; // Error - ^" in a as{TypeError} self::C2; + ^" in a as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:91:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b1; // Error - ^" in b1 as{TypeError} self::C2; + ^" in b1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:92:8: Error: A value of type 'B' can't be assigned to a variable of type 'C2'. c2 = b2; // Error - ^" in b2 as{TypeError} self::C2; + ^" in b2 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:93:8: Error: A value of type 'C1' can't be assigned to a variable of type 'C2'. c2 = c1; // Error - ^" in c1 as{TypeError} self::C2; + ^" in c1 as{TypeError} self::C2 /* = core::int */; c2 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:94:8: Error: A value of type 'D1' can't be assigned to a variable of type 'C2'. c2 = d1; // Error - ^" in d1 as{TypeError} self::C2; + ^" in d1 as{TypeError} self::C2 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:96:8: Error: A value of type 'A' can't be assigned to a variable of type 'D1'. d1 = a; // Error - ^" in a as{TypeError} self::D1; + ^" in a as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:97:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b1; // Error - ^" in b1 as{TypeError} self::D1; + ^" in b1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:98:8: Error: A value of type 'B' can't be assigned to a variable of type 'D1'. d1 = b2; // Error - ^" in b2 as{TypeError} self::D1; + ^" in b2 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:99:8: Error: A value of type 'C1' can't be assigned to a variable of type 'D1'. d1 = c1; // Error - ^" in c1 as{TypeError} self::D1; + ^" in c1 as{TypeError} self::D1 /* = core::int */; d1 = invalid-expression "pkg/front_end/testcases/inline_class/implements.dart:100:8: Error: A value of type 'C2' can't be assigned to a variable of type 'D1'. d1 = c2; // Error - ^" in c2 as{TypeError} self::D1; + ^" in c2 as{TypeError} self::D1 /* = core::int */; } -static method method(self::A a, self::B b1, self::B b2, self::C1 c1, self::C2 c2, self::D1 d1) → dynamic { +static method method(self::A /* = core::int */ a, self::B /* = core::String */ b1, self::B /* = core::num */ b2, self::C1 /* = core::int */ c1, self::C2 /* = core::int */ c2, self::D1 /* = core::int */ d1) → dynamic { self::expect(0.{core::num::+}(5){(core::num) → core::int}, self::A|methodA(a)); self::expect("0", self::B|methodB(b1)); self::expect(1.{core::num::+}(0){(core::num) → core::int}, self::B|methodB(b2)); diff --git a/pkg/front_end/testcases/inline_class/initializers.dart.strong.expect b/pkg/front_end/testcases/inline_class/initializers.dart.strong.expect index 9400a66fff1..73bd7c8316c 100644 --- a/pkg/front_end/testcases/inline_class/initializers.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/initializers.dart.strong.expect @@ -44,42 +44,42 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:24:27: Error: 'nonexisting' isn't an instance field of this class. Class4(this.field, this.nonexisting); ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|(core::int field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:30:35: Error: 'field' was already initialized by this constructor. Class5(this.field) : this.field = 42; ^"; return #this; } -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|(core::int field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; final dynamic #t3 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:36:29: Error: 'nonexisting' isn't an instance field of this class. Class6(this.field) : this.nonexisting = 42; ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/initializers.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/initializers.dart.strong.transformed.expect index 9400a66fff1..73bd7c8316c 100644 --- a/pkg/front_end/testcases/inline_class/initializers.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/initializers.dart.strong.transformed.expect @@ -44,42 +44,42 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:24:27: Error: 'nonexisting' isn't an instance field of this class. Class4(this.field, this.nonexisting); ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|(core::int field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:30:35: Error: 'field' was already initialized by this constructor. Class5(this.field) : this.field = 42; ^"; return #this; } -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|(core::int field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; final dynamic #t3 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:36:29: Error: 'nonexisting' isn't an instance field of this class. Class6(this.field) : this.nonexisting = 42; ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/initializers.dart.weak.expect b/pkg/front_end/testcases/inline_class/initializers.dart.weak.expect index 9400a66fff1..73bd7c8316c 100644 --- a/pkg/front_end/testcases/inline_class/initializers.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/initializers.dart.weak.expect @@ -44,42 +44,42 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:24:27: Error: 'nonexisting' isn't an instance field of this class. Class4(this.field, this.nonexisting); ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|(core::int field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:30:35: Error: 'field' was already initialized by this constructor. Class5(this.field) : this.field = 42; ^"; return #this; } -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|(core::int field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; final dynamic #t3 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:36:29: Error: 'nonexisting' isn't an instance field of this class. Class6(this.field) : this.nonexisting = 42; ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/initializers.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/initializers.dart.weak.modular.expect index 9400a66fff1..73bd7c8316c 100644 --- a/pkg/front_end/testcases/inline_class/initializers.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/initializers.dart.weak.modular.expect @@ -44,42 +44,42 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:24:27: Error: 'nonexisting' isn't an instance field of this class. Class4(this.field, this.nonexisting); ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|(core::int field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:30:35: Error: 'field' was already initialized by this constructor. Class5(this.field) : this.field = 42; ^"; return #this; } -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|(core::int field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; final dynamic #t3 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:36:29: Error: 'nonexisting' isn't an instance field of this class. Class6(this.field) : this.nonexisting = 42; ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/initializers.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/initializers.dart.weak.outline.expect index ba1a67fcc0a..56f7acf5e24 100644 --- a/pkg/front_end/testcases/inline_class/initializers.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/initializers.dart.weak.outline.expect @@ -24,23 +24,23 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ ; -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ ; -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|(core::int field) → self::Class5 +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ ; -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|(core::int field) → self::Class6 +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ ; -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/initializers.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/initializers.dart.weak.transformed.expect index 9400a66fff1..73bd7c8316c 100644 --- a/pkg/front_end/testcases/inline_class/initializers.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/initializers.dart.weak.transformed.expect @@ -44,42 +44,42 @@ extension type Class6(core::int field) { constructor • = self::Class6|; tearoff • = self::Class6|_#new#tearOff; } -static inline-class-member method Class1|(core::int field) → self::Class1 { - lowered final self::Class1 #this = field; +static inline-class-member method Class1|(core::int field) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int field) → self::Class1 /* = core::int */ return self::Class1|(field); -static inline-class-member method Class2|(core::int field) → self::Class2 { - lowered final self::Class2 #this = field; +static inline-class-member method Class2|(core::int field) → self::Class2 /* = core::int */ { + lowered final self::Class2 /* = core::int */ #this = field; return #this; } -static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 +static inline-class-member method Class2|_#new#tearOff(core::int field) → self::Class2 /* = core::int */ return self::Class2|(field); -static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 { - lowered final self::Class4 #this = field; +static inline-class-member method Class4|(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ { + lowered final self::Class4 /* = core::int */ #this = field; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:24:27: Error: 'nonexisting' isn't an instance field of this class. Class4(this.field, this.nonexisting); ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 +static inline-class-member method Class4|_#new#tearOff(core::int field, dynamic nonexisting) → self::Class4 /* = core::int */ return self::Class4|(field, nonexisting); -static inline-class-member method Class5|(core::int field) → self::Class5 { - lowered final self::Class5 #this = field; +static inline-class-member method Class5|(core::int field) → self::Class5 /* = core::int */ { + lowered final self::Class5 /* = core::int */ #this = field; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:30:35: Error: 'field' was already initialized by this constructor. Class5(this.field) : this.field = 42; ^"; return #this; } -static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 +static inline-class-member method Class5|_#new#tearOff(core::int field) → self::Class5 /* = core::int */ return self::Class5|(field); -static inline-class-member method Class6|(core::int field) → self::Class6 { - lowered final self::Class6 #this = field; +static inline-class-member method Class6|(core::int field) → self::Class6 /* = core::int */ { + lowered final self::Class6 /* = core::int */ #this = field; final dynamic #t3 = invalid-expression "pkg/front_end/testcases/inline_class/initializers.dart:36:29: Error: 'nonexisting' isn't an instance field of this class. Class6(this.field) : this.nonexisting = 42; ^^^^^^^^^^^"; return #this; } -static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 +static inline-class-member method Class6|_#new#tearOff(core::int field) → self::Class6 /* = core::int */ return self::Class6|(field); diff --git a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.strong.expect b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.strong.expect index 9fc77634003..0dc0894cdbc 100644 --- a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.strong.expect @@ -17,16 +17,16 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(core::List it) → self::Class3 { - lowered final self::Class3 #this = it; +static inline-class-member method Class3|(core::List it) → self::Class3 /* = core::List */ { + lowered final self::Class3 /* = core::List */ #this = it; return #this; } -static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic {} +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic {} diff --git a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.strong.transformed.expect index 989f1e84995..5ef231e4fba 100644 --- a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.strong.transformed.expect @@ -17,16 +17,16 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(core::List it) → self::Class3 { - lowered final self::Class3 #this = it; +static inline-class-member method Class3|(core::List it) → self::Class3 /* = core::List */ { + lowered final self::Class3 /* = core::List */ #this = it; return #this; } -static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic {} +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic {} diff --git a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.expect b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.expect index 9fc77634003..0dc0894cdbc 100644 --- a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.expect @@ -17,16 +17,16 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(core::List it) → self::Class3 { - lowered final self::Class3 #this = it; +static inline-class-member method Class3|(core::List it) → self::Class3 /* = core::List */ { + lowered final self::Class3 /* = core::List */ #this = it; return #this; } -static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic {} +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic {} diff --git a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.modular.expect index 9fc77634003..0dc0894cdbc 100644 --- a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.modular.expect @@ -17,16 +17,16 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(core::List it) → self::Class3 { - lowered final self::Class3 #this = it; +static inline-class-member method Class3|(core::List it) → self::Class3 /* = core::List */ { + lowered final self::Class3 /* = core::List */ #this = it; return #this; } -static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic {} +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic {} diff --git a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.outline.expect index 7fca0390346..5c631ff2d88 100644 --- a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.outline.expect @@ -17,13 +17,13 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ ; -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(core::List it) → self::Class3 +static inline-class-member method Class3|(core::List it) → self::Class3 /* = core::List */ ; -static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.transformed.expect index 989f1e84995..5ef231e4fba 100644 --- a/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/inline_class_declaration.dart.weak.transformed.expect @@ -17,16 +17,16 @@ extension type Class3(core::List it) { constructor • = self::Class3|; tearoff • = self::Class3|_#new#tearOff; } -static inline-class-member method Class1|(core::int it) → self::Class1 { - lowered final self::Class1 #this = it; +static inline-class-member method Class1|(core::int it) → self::Class1 /* = core::int */ { + lowered final self::Class1 /* = core::int */ #this = it; return #this; } -static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 +static inline-class-member method Class1|_#new#tearOff(core::int it) → self::Class1 /* = core::int */ return self::Class1|(it); -static inline-class-member method Class3|(core::List it) → self::Class3 { - lowered final self::Class3 #this = it; +static inline-class-member method Class3|(core::List it) → self::Class3 /* = core::List */ { + lowered final self::Class3 /* = core::List */ #this = it; return #this; } -static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 +static inline-class-member method Class3|_#new#tearOff(core::List it) → self::Class3 /* = core::List */ return self::Class3|(it); -static method method(self::Class1 c1, self::Class3 c3) → dynamic {} +static method method(self::Class1 /* = core::int */ c1, self::Class3 /* = core::List */ c3) → dynamic {} diff --git a/pkg/front_end/testcases/inline_class/issue51146.dart.strong.expect b/pkg/front_end/testcases/inline_class/issue51146.dart.strong.expect index 3d56eac0c24..7ab0ec4a5c7 100644 --- a/pkg/front_end/testcases/inline_class/issue51146.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/issue51146.dart.strong.expect @@ -6,13 +6,13 @@ extension type I(self::I|::X% value) → self::I { - lowered final self::I #this = value; +static inline-class-member method I|(self::I|::X% value) → self::I /* = self::I|::X% */ { + lowered final self::I /* = self::I|::X% */ #this = value; return #this; } -static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I +static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void {} +static method f(self::I /* = core::int */ i) → void {} static method main() → void { self::f(self::I|(2)); } diff --git a/pkg/front_end/testcases/inline_class/issue51146.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/issue51146.dart.strong.transformed.expect index 3d56eac0c24..7ab0ec4a5c7 100644 --- a/pkg/front_end/testcases/inline_class/issue51146.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue51146.dart.strong.transformed.expect @@ -6,13 +6,13 @@ extension type I(self::I|::X% value) → self::I { - lowered final self::I #this = value; +static inline-class-member method I|(self::I|::X% value) → self::I /* = self::I|::X% */ { + lowered final self::I /* = self::I|::X% */ #this = value; return #this; } -static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I +static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void {} +static method f(self::I /* = core::int */ i) → void {} static method main() → void { self::f(self::I|(2)); } diff --git a/pkg/front_end/testcases/inline_class/issue51146.dart.weak.expect b/pkg/front_end/testcases/inline_class/issue51146.dart.weak.expect index 3d56eac0c24..7ab0ec4a5c7 100644 --- a/pkg/front_end/testcases/inline_class/issue51146.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/issue51146.dart.weak.expect @@ -6,13 +6,13 @@ extension type I(self::I|::X% value) → self::I { - lowered final self::I #this = value; +static inline-class-member method I|(self::I|::X% value) → self::I /* = self::I|::X% */ { + lowered final self::I /* = self::I|::X% */ #this = value; return #this; } -static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I +static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void {} +static method f(self::I /* = core::int */ i) → void {} static method main() → void { self::f(self::I|(2)); } diff --git a/pkg/front_end/testcases/inline_class/issue51146.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/issue51146.dart.weak.modular.expect index 3d56eac0c24..7ab0ec4a5c7 100644 --- a/pkg/front_end/testcases/inline_class/issue51146.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/issue51146.dart.weak.modular.expect @@ -6,13 +6,13 @@ extension type I(self::I|::X% value) → self::I { - lowered final self::I #this = value; +static inline-class-member method I|(self::I|::X% value) → self::I /* = self::I|::X% */ { + lowered final self::I /* = self::I|::X% */ #this = value; return #this; } -static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I +static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void {} +static method f(self::I /* = core::int */ i) → void {} static method main() → void { self::f(self::I|(2)); } diff --git a/pkg/front_end/testcases/inline_class/issue51146.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/issue51146.dart.weak.outline.expect index 117d30afad4..f719b038711 100644 --- a/pkg/front_end/testcases/inline_class/issue51146.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/issue51146.dart.weak.outline.expect @@ -6,11 +6,11 @@ extension type I(self::I|::X% value) → self::I +static inline-class-member method I|(self::I|::X% value) → self::I /* = self::I|::X% */ ; -static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I +static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void +static method f(self::I /* = core::int */ i) → void ; static method main() → void ; diff --git a/pkg/front_end/testcases/inline_class/issue51146.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/issue51146.dart.weak.transformed.expect index 3d56eac0c24..7ab0ec4a5c7 100644 --- a/pkg/front_end/testcases/inline_class/issue51146.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue51146.dart.weak.transformed.expect @@ -6,13 +6,13 @@ extension type I(self::I|::X% value) → self::I { - lowered final self::I #this = value; +static inline-class-member method I|(self::I|::X% value) → self::I /* = self::I|::X% */ { + lowered final self::I /* = self::I|::X% */ #this = value; return #this; } -static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I +static inline-class-member method I|_#new#tearOff(self::I|_#new#tearOff::X% value) → self::I /* = self::I|_#new#tearOff::X% */ return self::I|(value); -static method f(self::I i) → void {} +static method f(self::I /* = core::int */ i) → void {} static method main() → void { self::f(self::I|(2)); } diff --git a/pkg/front_end/testcases/inline_class/issue51285.dart.strong.expect b/pkg/front_end/testcases/inline_class/issue51285.dart.strong.expect index 5b15c989ea7..04ecd65685d 100644 --- a/pkg/front_end/testcases/inline_class/issue51285.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/issue51285.dart.strong.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/issue51285.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/issue51285.dart.strong.transformed.expect index 5b15c989ea7..04ecd65685d 100644 --- a/pkg/front_end/testcases/inline_class/issue51285.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue51285.dart.strong.transformed.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/issue51285.dart.weak.expect b/pkg/front_end/testcases/inline_class/issue51285.dart.weak.expect index 8bb96fd5ab2..415dbdd774d 100644 --- a/pkg/front_end/testcases/inline_class/issue51285.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/issue51285.dart.weak.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/issue51285.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/issue51285.dart.weak.modular.expect index 8bb96fd5ab2..415dbdd774d 100644 --- a/pkg/front_end/testcases/inline_class/issue51285.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/issue51285.dart.weak.modular.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/issue51285.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/issue51285.dart.weak.outline.expect index a12caa52c2e..74a17bc5f71 100644 --- a/pkg/front_end/testcases/inline_class/issue51285.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/issue51285.dart.weak.outline.expect @@ -18,25 +18,25 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I +static inline-class-member method I|() → self::I /* = core::int */ ; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ ; -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ ; -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ ; -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ ; -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/issue51285.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/issue51285.dart.weak.transformed.expect index 8bb96fd5ab2..415dbdd774d 100644 --- a/pkg/front_end/testcases/inline_class/issue51285.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue51285.dart.weak.transformed.expect @@ -18,40 +18,40 @@ extension type K(T% i) { constructor _ = self::K|_; tearoff _ = self::K|_#_#tearOff; } -static inline-class-member method I|() → self::I - return 0 as self::I; -static inline-class-member method I|_#new#tearOff() → self::I +static inline-class-member method I|() → self::I /* = core::int */ + return 0 as self::I /* = core::int */; +static inline-class-member method I|_#new#tearOff() → self::I /* = core::int */ return self::I|(); -static inline-class-member method J|(core::int i) → self::J +static inline-class-member method J|(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method J|_#new#tearOff(core::int i) → self::J +static inline-class-member method J|_#new#tearOff(core::int i) → self::J /* = core::int */ return self::J|(i); -static inline-class-member method J|_(core::int i) → self::J { - lowered final self::J #this = i; +static inline-class-member method J|_(core::int i) → self::J /* = core::int */ { + lowered final self::J /* = core::int */ #this = i; return #this; } -static inline-class-member method J|_#_#tearOff(core::int i) → self::J +static inline-class-member method J|_#_#tearOff(core::int i) → self::J /* = core::int */ return self::J|_(i); -static inline-class-member method K|(self::K|::T% i) → self::K +static inline-class-member method K|(self::K|::T% i) → self::K /* = self::K|::T% */ return self::K|_(i); -static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K +static inline-class-member method K|_#new#tearOff(self::K|_#new#tearOff::T% i) → self::K /* = self::K|_#new#tearOff::T% */ return self::K|(i); -static inline-class-member method K|_(self::K|_::T% i) → self::K { - lowered final self::K #this = i; +static inline-class-member method K|_(self::K|_::T% i) → self::K /* = self::K|_::T% */ { + lowered final self::K /* = self::K|_::T% */ #this = i; return #this; } -static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K +static inline-class-member method K|_#_#tearOff(self::K|_#_#tearOff::T% i) → self::K /* = self::K|_#_#tearOff::T% */ return self::K|_(i); static method main() → dynamic { self::expect(0, self::I|()); - self::expect(0, #C1(){() → self::I}); + self::expect(0, #C1(){() → self::I /* = core::int */}); self::expect(42, self::J|(42)); self::expect(87, self::J|(87)); - self::expect(123, #C2(123){(core::int) → self::J}); + self::expect(123, #C2(123){(core::int) → self::J /* = core::int */}); self::expect("foo", self::K|("foo")); self::expect("bar", self::K|("bar")); - self::expect("baz", #C3("baz"){(core::String) → self::K}); - self::expect("boz", #C4("boz"){(core::String) → self::K}); + self::expect("baz", #C3("baz"){(core::String) → self::K /* = core::String */}); + self::expect("boz", #C4("boz"){(core::String) → self::K /* = core::String */}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/inline_class/issue51299.dart.strong.expect b/pkg/front_end/testcases/inline_class/issue51299.dart.strong.expect index 37c04586ac8..28b40dc7e07 100644 --- a/pkg/front_end/testcases/inline_class/issue51299.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/issue51299.dart.strong.expect @@ -6,6 +6,6 @@ extension type I(invalid-type #) { get i = self::I|get#i; set i = self::I|set#i; } -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = invalid-type */ #this) → core::int return 0; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void {} +static inline-class-member method I|set#i(lowered final self::I /* = invalid-type */ #this, core::int val) → void {} diff --git a/pkg/front_end/testcases/inline_class/issue51299.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/issue51299.dart.strong.transformed.expect index 37c04586ac8..28b40dc7e07 100644 --- a/pkg/front_end/testcases/inline_class/issue51299.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue51299.dart.strong.transformed.expect @@ -6,6 +6,6 @@ extension type I(invalid-type #) { get i = self::I|get#i; set i = self::I|set#i; } -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = invalid-type */ #this) → core::int return 0; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void {} +static inline-class-member method I|set#i(lowered final self::I /* = invalid-type */ #this, core::int val) → void {} diff --git a/pkg/front_end/testcases/inline_class/issue51299.dart.weak.expect b/pkg/front_end/testcases/inline_class/issue51299.dart.weak.expect index 37c04586ac8..28b40dc7e07 100644 --- a/pkg/front_end/testcases/inline_class/issue51299.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/issue51299.dart.weak.expect @@ -6,6 +6,6 @@ extension type I(invalid-type #) { get i = self::I|get#i; set i = self::I|set#i; } -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = invalid-type */ #this) → core::int return 0; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void {} +static inline-class-member method I|set#i(lowered final self::I /* = invalid-type */ #this, core::int val) → void {} diff --git a/pkg/front_end/testcases/inline_class/issue51299.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/issue51299.dart.weak.modular.expect index 37c04586ac8..28b40dc7e07 100644 --- a/pkg/front_end/testcases/inline_class/issue51299.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/issue51299.dart.weak.modular.expect @@ -6,6 +6,6 @@ extension type I(invalid-type #) { get i = self::I|get#i; set i = self::I|set#i; } -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = invalid-type */ #this) → core::int return 0; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void {} +static inline-class-member method I|set#i(lowered final self::I /* = invalid-type */ #this, core::int val) → void {} diff --git a/pkg/front_end/testcases/inline_class/issue51299.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/issue51299.dart.weak.outline.expect index d22bd0c3dd8..37c077d816f 100644 --- a/pkg/front_end/testcases/inline_class/issue51299.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/issue51299.dart.weak.outline.expect @@ -6,7 +6,7 @@ extension type I(invalid-type #) { get i = self::I|get#i; set i = self::I|set#i; } -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = invalid-type */ #this) → core::int ; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void +static inline-class-member method I|set#i(lowered final self::I /* = invalid-type */ #this, core::int val) → void ; diff --git a/pkg/front_end/testcases/inline_class/issue51299.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/issue51299.dart.weak.transformed.expect index 37c04586ac8..28b40dc7e07 100644 --- a/pkg/front_end/testcases/inline_class/issue51299.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue51299.dart.weak.transformed.expect @@ -6,6 +6,6 @@ extension type I(invalid-type #) { get i = self::I|get#i; set i = self::I|set#i; } -static inline-class-member method I|get#i(lowered final self::I #this) → core::int +static inline-class-member method I|get#i(lowered final self::I /* = invalid-type */ #this) → core::int return 0; -static inline-class-member method I|set#i(lowered final self::I #this, core::int val) → void {} +static inline-class-member method I|set#i(lowered final self::I /* = invalid-type */ #this, core::int val) → void {} diff --git a/pkg/front_end/testcases/inline_class/issue51556.dart.strong.expect b/pkg/front_end/testcases/inline_class/issue51556.dart.strong.expect index ab1360fa08f..e022a7a8b69 100644 --- a/pkg/front_end/testcases/inline_class/issue51556.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/issue51556.dart.strong.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,58 +15,58 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(core::Object value) → self::JSAny { - lowered final self::JSAny #this = value; +static inline-class-member method JSAny|(core::Object value) → self::JSAny /* = core::Object */ { + lowered final self::JSAny /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(core::Object value) → self::JSObject { - lowered final self::JSObject #this = value; +static inline-class-member method JSObject|(core::Object value) → self::JSObject /* = core::Object */ { + lowered final self::JSObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(core::List value) → self::JSArray { - lowered final self::JSArray #this = value; +static inline-class-member method JSArray|(core::List value) → self::JSArray /* = core::List */ { + lowered final self::JSArray /* = core::List */ #this = value; return #this; } -static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject { - lowered final self::JSExportedDartObject #this = value; +static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject /* = core::Object */ { + lowered final self::JSExportedDartObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(core::double value) → self::JSNumber { - lowered final self::JSNumber #this = value; +static inline-class-member method JSNumber|(core::double value) → self::JSNumber /* = core::double */ { + lowered final self::JSNumber /* = core::double */ #this = value; return #this; } -static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(#this); -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ return self::JSArray|(#this); -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ return self::JSNumber|(#this); static method main() → void { - self::JSArray arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); + self::JSArray /* = core::List */ arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); } diff --git a/pkg/front_end/testcases/inline_class/issue51556.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/issue51556.dart.strong.transformed.expect index dc861f90d80..2fbb243fc5c 100644 --- a/pkg/front_end/testcases/inline_class/issue51556.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue51556.dart.strong.transformed.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,58 +15,58 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(core::Object value) → self::JSAny { - lowered final self::JSAny #this = value; +static inline-class-member method JSAny|(core::Object value) → self::JSAny /* = core::Object */ { + lowered final self::JSAny /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(core::Object value) → self::JSObject { - lowered final self::JSObject #this = value; +static inline-class-member method JSObject|(core::Object value) → self::JSObject /* = core::Object */ { + lowered final self::JSObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(core::List value) → self::JSArray { - lowered final self::JSArray #this = value; +static inline-class-member method JSArray|(core::List value) → self::JSArray /* = core::List */ { + lowered final self::JSArray /* = core::List */ #this = value; return #this; } -static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject { - lowered final self::JSExportedDartObject #this = value; +static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject /* = core::Object */ { + lowered final self::JSExportedDartObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(core::double value) → self::JSNumber { - lowered final self::JSNumber #this = value; +static inline-class-member method JSNumber|(core::double value) → self::JSNumber /* = core::double */ { + lowered final self::JSNumber /* = core::double */ #this = value; return #this; } -static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(#this); -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ return self::JSArray|(#this); -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ return self::JSNumber|(#this); static method main() → void { - self::JSArray arr = self::ListToJSArray|get#toJS(core::_GrowableList::_literal2(self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo"))); + self::JSArray /* = core::List */ arr = self::ListToJSArray|get#toJS(core::_GrowableList::_literal2(self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo"))); } diff --git a/pkg/front_end/testcases/inline_class/issue51556.dart.weak.expect b/pkg/front_end/testcases/inline_class/issue51556.dart.weak.expect index ab1360fa08f..e022a7a8b69 100644 --- a/pkg/front_end/testcases/inline_class/issue51556.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/issue51556.dart.weak.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,58 +15,58 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(core::Object value) → self::JSAny { - lowered final self::JSAny #this = value; +static inline-class-member method JSAny|(core::Object value) → self::JSAny /* = core::Object */ { + lowered final self::JSAny /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(core::Object value) → self::JSObject { - lowered final self::JSObject #this = value; +static inline-class-member method JSObject|(core::Object value) → self::JSObject /* = core::Object */ { + lowered final self::JSObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(core::List value) → self::JSArray { - lowered final self::JSArray #this = value; +static inline-class-member method JSArray|(core::List value) → self::JSArray /* = core::List */ { + lowered final self::JSArray /* = core::List */ #this = value; return #this; } -static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject { - lowered final self::JSExportedDartObject #this = value; +static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject /* = core::Object */ { + lowered final self::JSExportedDartObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(core::double value) → self::JSNumber { - lowered final self::JSNumber #this = value; +static inline-class-member method JSNumber|(core::double value) → self::JSNumber /* = core::double */ { + lowered final self::JSNumber /* = core::double */ #this = value; return #this; } -static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(#this); -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ return self::JSArray|(#this); -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ return self::JSNumber|(#this); static method main() → void { - self::JSArray arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); + self::JSArray /* = core::List */ arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); } diff --git a/pkg/front_end/testcases/inline_class/issue51556.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/issue51556.dart.weak.modular.expect index ab1360fa08f..e022a7a8b69 100644 --- a/pkg/front_end/testcases/inline_class/issue51556.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/issue51556.dart.weak.modular.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,58 +15,58 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(core::Object value) → self::JSAny { - lowered final self::JSAny #this = value; +static inline-class-member method JSAny|(core::Object value) → self::JSAny /* = core::Object */ { + lowered final self::JSAny /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(core::Object value) → self::JSObject { - lowered final self::JSObject #this = value; +static inline-class-member method JSObject|(core::Object value) → self::JSObject /* = core::Object */ { + lowered final self::JSObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(core::List value) → self::JSArray { - lowered final self::JSArray #this = value; +static inline-class-member method JSArray|(core::List value) → self::JSArray /* = core::List */ { + lowered final self::JSArray /* = core::List */ #this = value; return #this; } -static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject { - lowered final self::JSExportedDartObject #this = value; +static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject /* = core::Object */ { + lowered final self::JSExportedDartObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(core::double value) → self::JSNumber { - lowered final self::JSNumber #this = value; +static inline-class-member method JSNumber|(core::double value) → self::JSNumber /* = core::double */ { + lowered final self::JSNumber /* = core::double */ #this = value; return #this; } -static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(#this); -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ return self::JSArray|(#this); -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ return self::JSNumber|(#this); static method main() → void { - self::JSArray arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); + self::JSArray /* = core::List */ arr = self::ListToJSArray|get#toJS([self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo")]); } diff --git a/pkg/front_end/testcases/inline_class/issue51556.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/issue51556.dart.weak.outline.expect index d8520ab19a4..65a787e3149 100644 --- a/pkg/front_end/testcases/inline_class/issue51556.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/issue51556.dart.weak.outline.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,47 +15,47 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(core::Object value) → self::JSAny +static inline-class-member method JSAny|(core::Object value) → self::JSAny /* = core::Object */ ; -static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(core::Object value) → self::JSObject +static inline-class-member method JSObject|(core::Object value) → self::JSObject /* = core::Object */ ; -static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(core::List value) → self::JSArray +static inline-class-member method JSArray|(core::List value) → self::JSArray /* = core::List */ ; -static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject /* = core::Object */ ; -static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(core::double value) → self::JSNumber +static inline-class-member method JSNumber|(core::double value) → self::JSNumber /* = core::double */ ; -static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ ; -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ ; -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ ; static method main() → void ; diff --git a/pkg/front_end/testcases/inline_class/issue51556.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/issue51556.dart.weak.transformed.expect index dc861f90d80..2fbb243fc5c 100644 --- a/pkg/front_end/testcases/inline_class/issue51556.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue51556.dart.weak.transformed.expect @@ -5,7 +5,7 @@ import "dart:core" as core; extension ObjectToJSExportedDartObject on core::Object { get toJS = self::ObjectToJSExportedDartObject|get#toJS; } -extension ListToJSArray on core::List { +extension ListToJSArray on core::List { get toJS = self::ListToJSArray|get#toJS; } extension DoubleToJSNumber on core::double { @@ -15,58 +15,58 @@ extension type JSAny(core::Object value) { constructor • = self::JSAny|; tearoff • = self::JSAny|_#new#tearOff; } -extension type JSObject(core::Object value) implements self::JSAny { +extension type JSObject(core::Object value) implements self::JSAny /* = core::Object */ { constructor • = self::JSObject|; tearoff • = self::JSObject|_#new#tearOff; } -extension type JSArray(core::List value) implements self::JSObject { +extension type JSArray(core::List value) implements self::JSObject /* = core::Object */ { constructor • = self::JSArray|; tearoff • = self::JSArray|_#new#tearOff; } -extension type JSExportedDartObject(core::Object value) implements self::JSObject { +extension type JSExportedDartObject(core::Object value) implements self::JSObject /* = core::Object */ { constructor • = self::JSExportedDartObject|; tearoff • = self::JSExportedDartObject|_#new#tearOff; } -extension type JSNumber(core::double value) implements self::JSAny { +extension type JSNumber(core::double value) implements self::JSAny /* = core::Object */ { constructor • = self::JSNumber|; tearoff • = self::JSNumber|_#new#tearOff; } -static inline-class-member method JSAny|(core::Object value) → self::JSAny { - lowered final self::JSAny #this = value; +static inline-class-member method JSAny|(core::Object value) → self::JSAny /* = core::Object */ { + lowered final self::JSAny /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny +static inline-class-member method JSAny|_#new#tearOff(core::Object value) → self::JSAny /* = core::Object */ return self::JSAny|(value); -static inline-class-member method JSObject|(core::Object value) → self::JSObject { - lowered final self::JSObject #this = value; +static inline-class-member method JSObject|(core::Object value) → self::JSObject /* = core::Object */ { + lowered final self::JSObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject +static inline-class-member method JSObject|_#new#tearOff(core::Object value) → self::JSObject /* = core::Object */ return self::JSObject|(value); -static inline-class-member method JSArray|(core::List value) → self::JSArray { - lowered final self::JSArray #this = value; +static inline-class-member method JSArray|(core::List value) → self::JSArray /* = core::List */ { + lowered final self::JSArray /* = core::List */ #this = value; return #this; } -static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray +static inline-class-member method JSArray|_#new#tearOff(core::List value) → self::JSArray /* = core::List */ return self::JSArray|(value); -static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject { - lowered final self::JSExportedDartObject #this = value; +static inline-class-member method JSExportedDartObject|(core::Object value) → self::JSExportedDartObject /* = core::Object */ { + lowered final self::JSExportedDartObject /* = core::Object */ #this = value; return #this; } -static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject +static inline-class-member method JSExportedDartObject|_#new#tearOff(core::Object value) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(value); -static inline-class-member method JSNumber|(core::double value) → self::JSNumber { - lowered final self::JSNumber #this = value; +static inline-class-member method JSNumber|(core::double value) → self::JSNumber /* = core::double */ { + lowered final self::JSNumber /* = core::double */ #this = value; return #this; } -static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber +static inline-class-member method JSNumber|_#new#tearOff(core::double value) → self::JSNumber /* = core::double */ return self::JSNumber|(value); -static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject +static extension-member method ObjectToJSExportedDartObject|get#toJS(lowered final core::Object #this) → self::JSExportedDartObject /* = core::Object */ return self::JSExportedDartObject|(#this); -static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray +static extension-member method ListToJSArray|get#toJS(lowered final core::List #this) → self::JSArray /* = core::List */ return self::JSArray|(#this); -static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber +static extension-member method DoubleToJSNumber|get#toJS(lowered final core::double #this) → self::JSNumber /* = core::double */ return self::JSNumber|(#this); static method main() → void { - self::JSArray arr = self::ListToJSArray|get#toJS(core::_GrowableList::_literal2(self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo"))); + self::JSArray /* = core::List */ arr = self::ListToJSArray|get#toJS(core::_GrowableList::_literal2(self::DoubleToJSNumber|get#toJS(1.0), self::ObjectToJSExportedDartObject|get#toJS("foo"))); } diff --git a/pkg/front_end/testcases/inline_class/issue52119.dart.strong.expect b/pkg/front_end/testcases/inline_class/issue52119.dart.strong.expect index 30f0ba6f21e..460214f13f7 100644 --- a/pkg/front_end/testcases/inline_class/issue52119.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/issue52119.dart.strong.expect @@ -37,61 +37,61 @@ extension type Bar(T% i) { constructor _ = self::Bar|_; tearoff _ = self::Bar|_#_#tearOff; } -static inline-class-member method Foo|(core::int i) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|_(i.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|_(core::int i) → self::Foo { - lowered final self::Foo #this = i; +static inline-class-member method Foo|_(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = i; return #this; } -static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|named(a, subtract: b); return #this; } -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final core::int #t1 = b; #this = self::Foo|named(a, subtract: #t1); return #this; } -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo { - lowered final self::Foo #this = value.{core::num::-}(subtract){(core::num) → core::int}; +static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = value.{core::num::-}(subtract){(core::num) → core::int}; return #this; } -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/issue52119.dart:15:26: Error: Couldn't find constructor 'Foo.unresolved'. Foo.erroneous() : this.unresolved(); ^^^^^^^^^^"; return #this; } -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar { - lowered final self::Bar #this; +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = self::Bar|::T% */ { + lowered final self::Bar /* = self::Bar|::T% */ #this; #this = self::Bar|_(i); return #this; } -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = self::Bar|_#new#tearOff::T% */ return self::Bar|(i); -static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar { - lowered final self::Bar #this = i; +static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar /* = self::Bar|_::T% */ { + lowered final self::Bar /* = self::Bar|_::T% */ #this = i; return #this; } -static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar /* = self::Bar|_#_#tearOff::T% */ return self::Bar|_(i); static method main() → dynamic { self::expect(44, self::Foo|(42) as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/issue52119.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/issue52119.dart.strong.transformed.expect index 30f0ba6f21e..460214f13f7 100644 --- a/pkg/front_end/testcases/inline_class/issue52119.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue52119.dart.strong.transformed.expect @@ -37,61 +37,61 @@ extension type Bar(T% i) { constructor _ = self::Bar|_; tearoff _ = self::Bar|_#_#tearOff; } -static inline-class-member method Foo|(core::int i) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|_(i.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|_(core::int i) → self::Foo { - lowered final self::Foo #this = i; +static inline-class-member method Foo|_(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = i; return #this; } -static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|named(a, subtract: b); return #this; } -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final core::int #t1 = b; #this = self::Foo|named(a, subtract: #t1); return #this; } -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo { - lowered final self::Foo #this = value.{core::num::-}(subtract){(core::num) → core::int}; +static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = value.{core::num::-}(subtract){(core::num) → core::int}; return #this; } -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/issue52119.dart:15:26: Error: Couldn't find constructor 'Foo.unresolved'. Foo.erroneous() : this.unresolved(); ^^^^^^^^^^"; return #this; } -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar { - lowered final self::Bar #this; +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = self::Bar|::T% */ { + lowered final self::Bar /* = self::Bar|::T% */ #this; #this = self::Bar|_(i); return #this; } -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = self::Bar|_#new#tearOff::T% */ return self::Bar|(i); -static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar { - lowered final self::Bar #this = i; +static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar /* = self::Bar|_::T% */ { + lowered final self::Bar /* = self::Bar|_::T% */ #this = i; return #this; } -static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar /* = self::Bar|_#_#tearOff::T% */ return self::Bar|_(i); static method main() → dynamic { self::expect(44, self::Foo|(42) as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/issue52119.dart.weak.expect b/pkg/front_end/testcases/inline_class/issue52119.dart.weak.expect index 30f0ba6f21e..460214f13f7 100644 --- a/pkg/front_end/testcases/inline_class/issue52119.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/issue52119.dart.weak.expect @@ -37,61 +37,61 @@ extension type Bar(T% i) { constructor _ = self::Bar|_; tearoff _ = self::Bar|_#_#tearOff; } -static inline-class-member method Foo|(core::int i) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|_(i.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|_(core::int i) → self::Foo { - lowered final self::Foo #this = i; +static inline-class-member method Foo|_(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = i; return #this; } -static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|named(a, subtract: b); return #this; } -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final core::int #t1 = b; #this = self::Foo|named(a, subtract: #t1); return #this; } -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo { - lowered final self::Foo #this = value.{core::num::-}(subtract){(core::num) → core::int}; +static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = value.{core::num::-}(subtract){(core::num) → core::int}; return #this; } -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/issue52119.dart:15:26: Error: Couldn't find constructor 'Foo.unresolved'. Foo.erroneous() : this.unresolved(); ^^^^^^^^^^"; return #this; } -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar { - lowered final self::Bar #this; +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = self::Bar|::T% */ { + lowered final self::Bar /* = self::Bar|::T% */ #this; #this = self::Bar|_(i); return #this; } -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = self::Bar|_#new#tearOff::T% */ return self::Bar|(i); -static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar { - lowered final self::Bar #this = i; +static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar /* = self::Bar|_::T% */ { + lowered final self::Bar /* = self::Bar|_::T% */ #this = i; return #this; } -static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar /* = self::Bar|_#_#tearOff::T% */ return self::Bar|_(i); static method main() → dynamic { self::expect(44, self::Foo|(42) as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/issue52119.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/issue52119.dart.weak.modular.expect index 30f0ba6f21e..460214f13f7 100644 --- a/pkg/front_end/testcases/inline_class/issue52119.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/issue52119.dart.weak.modular.expect @@ -37,61 +37,61 @@ extension type Bar(T% i) { constructor _ = self::Bar|_; tearoff _ = self::Bar|_#_#tearOff; } -static inline-class-member method Foo|(core::int i) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|_(i.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|_(core::int i) → self::Foo { - lowered final self::Foo #this = i; +static inline-class-member method Foo|_(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = i; return #this; } -static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|named(a, subtract: b); return #this; } -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final core::int #t1 = b; #this = self::Foo|named(a, subtract: #t1); return #this; } -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo { - lowered final self::Foo #this = value.{core::num::-}(subtract){(core::num) → core::int}; +static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = value.{core::num::-}(subtract){(core::num) → core::int}; return #this; } -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/issue52119.dart:15:26: Error: Couldn't find constructor 'Foo.unresolved'. Foo.erroneous() : this.unresolved(); ^^^^^^^^^^"; return #this; } -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar { - lowered final self::Bar #this; +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = self::Bar|::T% */ { + lowered final self::Bar /* = self::Bar|::T% */ #this; #this = self::Bar|_(i); return #this; } -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = self::Bar|_#new#tearOff::T% */ return self::Bar|(i); -static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar { - lowered final self::Bar #this = i; +static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar /* = self::Bar|_::T% */ { + lowered final self::Bar /* = self::Bar|_::T% */ #this = i; return #this; } -static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar /* = self::Bar|_#_#tearOff::T% */ return self::Bar|_(i); static method main() → dynamic { self::expect(44, self::Foo|(42) as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/issue52119.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/issue52119.dart.weak.outline.expect index 8033080678b..27b6182abf8 100644 --- a/pkg/front_end/testcases/inline_class/issue52119.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/issue52119.dart.weak.outline.expect @@ -22,37 +22,37 @@ extension type Bar(T% i) { constructor _ = self::Bar|_; tearoff _ = self::Bar|_#_#tearOff; } -static inline-class-member method Foo|(core::int i) → self::Foo +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|_(core::int i) → self::Foo +static inline-class-member method Foo|_(core::int i) → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = null}) → self::Foo +static inline-class-member method Foo|named(core::int value, {required core::int subtract = null}) → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ ; -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = self::Bar|::T% */ ; -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = self::Bar|_#new#tearOff::T% */ return self::Bar|(i); -static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar +static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar /* = self::Bar|_::T% */ ; -static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar /* = self::Bar|_#_#tearOff::T% */ return self::Bar|_(i); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/issue52119.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/issue52119.dart.weak.transformed.expect index 30f0ba6f21e..460214f13f7 100644 --- a/pkg/front_end/testcases/inline_class/issue52119.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue52119.dart.weak.transformed.expect @@ -37,61 +37,61 @@ extension type Bar(T% i) { constructor _ = self::Bar|_; tearoff _ = self::Bar|_#_#tearOff; } -static inline-class-member method Foo|(core::int i) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|_(i.{core::num::+}(2){(core::num) → core::int}); return #this; } -static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#new#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|(i); -static inline-class-member method Foo|_(core::int i) → self::Foo { - lowered final self::Foo #this = i; +static inline-class-member method Foo|_(core::int i) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = i; return #this; } -static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo +static inline-class-member method Foo|_#_#tearOff(core::int i) → self::Foo /* = core::int */ return self::Foo|_(i); -static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed1(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; #this = self::Foo|named(a, subtract: b); return #this; } -static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed1#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed1(a, b); -static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|redirectNamed2(core::int a, core::int b) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final core::int #t1 = b; #this = self::Foo|named(a, subtract: #t1); return #this; } -static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo +static inline-class-member method Foo|_#redirectNamed2#tearOff(core::int a, core::int b) → self::Foo /* = core::int */ return self::Foo|redirectNamed2(a, b); -static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo { - lowered final self::Foo #this = value.{core::num::-}(subtract){(core::num) → core::int}; +static inline-class-member method Foo|named(core::int value, {required core::int subtract = #C1}) → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this = value.{core::num::-}(subtract){(core::num) → core::int}; return #this; } -static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo +static inline-class-member method Foo|_#named#tearOff(core::int value, {required core::int subtract}) → self::Foo /* = core::int */ return self::Foo|named(value, subtract: subtract); -static inline-class-member method Foo|erroneous() → self::Foo { - lowered final self::Foo #this; +static inline-class-member method Foo|erroneous() → self::Foo /* = core::int */ { + lowered final self::Foo /* = core::int */ #this; final dynamic #t2 = invalid-expression "pkg/front_end/testcases/inline_class/issue52119.dart:15:26: Error: Couldn't find constructor 'Foo.unresolved'. Foo.erroneous() : this.unresolved(); ^^^^^^^^^^"; return #this; } -static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo +static inline-class-member method Foo|_#erroneous#tearOff() → self::Foo /* = core::int */ return self::Foo|erroneous(); -static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar { - lowered final self::Bar #this; +static inline-class-member method Bar|(self::Bar|::T% i) → self::Bar /* = self::Bar|::T% */ { + lowered final self::Bar /* = self::Bar|::T% */ #this; #this = self::Bar|_(i); return #this; } -static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#new#tearOff(self::Bar|_#new#tearOff::T% i) → self::Bar /* = self::Bar|_#new#tearOff::T% */ return self::Bar|(i); -static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar { - lowered final self::Bar #this = i; +static inline-class-member method Bar|_(self::Bar|_::T% i) → self::Bar /* = self::Bar|_::T% */ { + lowered final self::Bar /* = self::Bar|_::T% */ #this = i; return #this; } -static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar +static inline-class-member method Bar|_#_#tearOff(self::Bar|_#_#tearOff::T% i) → self::Bar /* = self::Bar|_#_#tearOff::T% */ return self::Bar|_(i); static method main() → dynamic { self::expect(44, self::Foo|(42) as{Unchecked} core::int); diff --git a/pkg/front_end/testcases/inline_class/issue52240.dart.strong.expect b/pkg/front_end/testcases/inline_class/issue52240.dart.strong.expect index 61e9888161f..bdec0fb4735 100644 --- a/pkg/front_end/testcases/inline_class/issue52240.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/issue52240.dart.strong.expect @@ -8,21 +8,21 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|named() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void { - core::print(#C1(){() → self::X} as{Unchecked} core::int); - core::print(#C2(){() → self::X} as{Unchecked} core::int); + core::print(#C1(){() → self::X /* = core::int */} as{Unchecked} core::int); + core::print(#C2(){() → self::X /* = core::int */} as{Unchecked} core::int); } constants { diff --git a/pkg/front_end/testcases/inline_class/issue52240.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/issue52240.dart.strong.transformed.expect index 61e9888161f..bdec0fb4735 100644 --- a/pkg/front_end/testcases/inline_class/issue52240.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue52240.dart.strong.transformed.expect @@ -8,21 +8,21 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|named() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void { - core::print(#C1(){() → self::X} as{Unchecked} core::int); - core::print(#C2(){() → self::X} as{Unchecked} core::int); + core::print(#C1(){() → self::X /* = core::int */} as{Unchecked} core::int); + core::print(#C2(){() → self::X /* = core::int */} as{Unchecked} core::int); } constants { diff --git a/pkg/front_end/testcases/inline_class/issue52240.dart.weak.expect b/pkg/front_end/testcases/inline_class/issue52240.dart.weak.expect index 61e9888161f..bdec0fb4735 100644 --- a/pkg/front_end/testcases/inline_class/issue52240.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/issue52240.dart.weak.expect @@ -8,21 +8,21 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|named() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void { - core::print(#C1(){() → self::X} as{Unchecked} core::int); - core::print(#C2(){() → self::X} as{Unchecked} core::int); + core::print(#C1(){() → self::X /* = core::int */} as{Unchecked} core::int); + core::print(#C2(){() → self::X /* = core::int */} as{Unchecked} core::int); } constants { diff --git a/pkg/front_end/testcases/inline_class/issue52240.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/issue52240.dart.weak.modular.expect index 61e9888161f..bdec0fb4735 100644 --- a/pkg/front_end/testcases/inline_class/issue52240.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/issue52240.dart.weak.modular.expect @@ -8,21 +8,21 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|named() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void { - core::print(#C1(){() → self::X} as{Unchecked} core::int); - core::print(#C2(){() → self::X} as{Unchecked} core::int); + core::print(#C1(){() → self::X /* = core::int */} as{Unchecked} core::int); + core::print(#C2(){() → self::X /* = core::int */} as{Unchecked} core::int); } constants { diff --git a/pkg/front_end/testcases/inline_class/issue52240.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/issue52240.dart.weak.outline.expect index ba49ab802db..417e67ef146 100644 --- a/pkg/front_end/testcases/inline_class/issue52240.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/issue52240.dart.weak.outline.expect @@ -8,13 +8,13 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|() → self::X +static inline-class-member method X|() → self::X /* = core::int */ ; -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X +static inline-class-member method X|named() → self::X /* = core::int */ ; -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void ; diff --git a/pkg/front_end/testcases/inline_class/issue52240.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/issue52240.dart.weak.transformed.expect index 61e9888161f..bdec0fb4735 100644 --- a/pkg/front_end/testcases/inline_class/issue52240.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue52240.dart.weak.transformed.expect @@ -8,21 +8,21 @@ extension type X(core::int obj) { constructor named = self::X|named; tearoff named = self::X|_#named#tearOff; } -static inline-class-member method X|() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#new#tearOff() → self::X +static inline-class-member method X|_#new#tearOff() → self::X /* = core::int */ return self::X|(); -static inline-class-member method X|named() → self::X { - lowered final self::X #this = 0; +static inline-class-member method X|named() → self::X /* = core::int */ { + lowered final self::X /* = core::int */ #this = 0; return #this; } -static inline-class-member method X|_#named#tearOff() → self::X +static inline-class-member method X|_#named#tearOff() → self::X /* = core::int */ return self::X|named(); static method main() → void { - core::print(#C1(){() → self::X} as{Unchecked} core::int); - core::print(#C2(){() → self::X} as{Unchecked} core::int); + core::print(#C1(){() → self::X /* = core::int */} as{Unchecked} core::int); + core::print(#C2(){() → self::X /* = core::int */} as{Unchecked} core::int); } constants { diff --git a/pkg/front_end/testcases/inline_class/issue52284.dart.strong.expect b/pkg/front_end/testcases/inline_class/issue52284.dart.strong.expect index 6f7feb70ec5..47e29cc1a57 100644 --- a/pkg/front_end/testcases/inline_class/issue52284.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/issue52284.dart.strong.expect @@ -14,21 +14,21 @@ extension type Id(core::int _id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(core::int id) → self::Id { - lowered final self::Id #this = id; +static inline-class-member method Id|(core::int id) → self::Id /* = core::int */ { + lowered final self::Id /* = core::int */ #this = id; return #this; } -static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id +static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); core::print(invalid-expression "pkg/front_end/testcases/inline_class/issue52284.dart:12:11: Error: The getter 'unresolved' isn't defined for the class 'Id'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. print(c.unresolved); // Error ^^^^^^^^^^" in c{}.unresolved); } static method main() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); self::expect(#C1, c.{core::Object::runtimeType}{core::Type}); } static method expect(dynamic expected, dynamic actual) → dynamic { diff --git a/pkg/front_end/testcases/inline_class/issue52284.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/issue52284.dart.strong.transformed.expect index 6f7feb70ec5..47e29cc1a57 100644 --- a/pkg/front_end/testcases/inline_class/issue52284.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue52284.dart.strong.transformed.expect @@ -14,21 +14,21 @@ extension type Id(core::int _id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(core::int id) → self::Id { - lowered final self::Id #this = id; +static inline-class-member method Id|(core::int id) → self::Id /* = core::int */ { + lowered final self::Id /* = core::int */ #this = id; return #this; } -static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id +static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); core::print(invalid-expression "pkg/front_end/testcases/inline_class/issue52284.dart:12:11: Error: The getter 'unresolved' isn't defined for the class 'Id'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. print(c.unresolved); // Error ^^^^^^^^^^" in c{}.unresolved); } static method main() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); self::expect(#C1, c.{core::Object::runtimeType}{core::Type}); } static method expect(dynamic expected, dynamic actual) → dynamic { diff --git a/pkg/front_end/testcases/inline_class/issue52284.dart.weak.expect b/pkg/front_end/testcases/inline_class/issue52284.dart.weak.expect index 6f5561bc154..8bf8418250e 100644 --- a/pkg/front_end/testcases/inline_class/issue52284.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/issue52284.dart.weak.expect @@ -14,21 +14,21 @@ extension type Id(core::int _id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(core::int id) → self::Id { - lowered final self::Id #this = id; +static inline-class-member method Id|(core::int id) → self::Id /* = core::int */ { + lowered final self::Id /* = core::int */ #this = id; return #this; } -static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id +static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); core::print(invalid-expression "pkg/front_end/testcases/inline_class/issue52284.dart:12:11: Error: The getter 'unresolved' isn't defined for the class 'Id'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. print(c.unresolved); // Error ^^^^^^^^^^" in c{}.unresolved); } static method main() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); self::expect(#C1, c.{core::Object::runtimeType}{core::Type}); } static method expect(dynamic expected, dynamic actual) → dynamic { diff --git a/pkg/front_end/testcases/inline_class/issue52284.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/issue52284.dart.weak.modular.expect index 6f5561bc154..8bf8418250e 100644 --- a/pkg/front_end/testcases/inline_class/issue52284.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/issue52284.dart.weak.modular.expect @@ -14,21 +14,21 @@ extension type Id(core::int _id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(core::int id) → self::Id { - lowered final self::Id #this = id; +static inline-class-member method Id|(core::int id) → self::Id /* = core::int */ { + lowered final self::Id /* = core::int */ #this = id; return #this; } -static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id +static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); core::print(invalid-expression "pkg/front_end/testcases/inline_class/issue52284.dart:12:11: Error: The getter 'unresolved' isn't defined for the class 'Id'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. print(c.unresolved); // Error ^^^^^^^^^^" in c{}.unresolved); } static method main() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); self::expect(#C1, c.{core::Object::runtimeType}{core::Type}); } static method expect(dynamic expected, dynamic actual) → dynamic { diff --git a/pkg/front_end/testcases/inline_class/issue52284.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/issue52284.dart.weak.outline.expect index 45f61ee90e0..361639339be 100644 --- a/pkg/front_end/testcases/inline_class/issue52284.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/issue52284.dart.weak.outline.expect @@ -6,9 +6,9 @@ extension type Id(core::int _id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(core::int id) → self::Id +static inline-class-member method Id|(core::int id) → self::Id /* = core::int */ ; -static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id +static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/issue52284.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/issue52284.dart.weak.transformed.expect index 6f5561bc154..8bf8418250e 100644 --- a/pkg/front_end/testcases/inline_class/issue52284.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue52284.dart.weak.transformed.expect @@ -14,21 +14,21 @@ extension type Id(core::int _id) { constructor • = self::Id|; tearoff • = self::Id|_#new#tearOff; } -static inline-class-member method Id|(core::int id) → self::Id { - lowered final self::Id #this = id; +static inline-class-member method Id|(core::int id) → self::Id /* = core::int */ { + lowered final self::Id /* = core::int */ #this = id; return #this; } -static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id +static inline-class-member method Id|_#new#tearOff(core::int id) → self::Id /* = core::int */ return self::Id|(id); static method test() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); core::print(invalid-expression "pkg/front_end/testcases/inline_class/issue52284.dart:12:11: Error: The getter 'unresolved' isn't defined for the class 'Id'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. print(c.unresolved); // Error ^^^^^^^^^^" in c{}.unresolved); } static method main() → dynamic { - self::Id c = self::Id|(2); + self::Id /* = core::int */ c = self::Id|(2); self::expect(#C1, c.{core::Object::runtimeType}{core::Type}); } static method expect(dynamic expected, dynamic actual) → dynamic { diff --git a/pkg/front_end/testcases/inline_class/issue52525.dart.strong.expect b/pkg/front_end/testcases/inline_class/issue52525.dart.strong.expect index 0bb106c9a44..975baeda291 100644 --- a/pkg/front_end/testcases/inline_class/issue52525.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/issue52525.dart.strong.expect @@ -8,17 +8,17 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(core::int id) → self::IC1 { - lowered final self::IC1 #this = id; +static inline-class-member method IC1|(core::int id) → self::IC1 /* = core::int */ { + lowered final self::IC1 /* = core::int */ #this = id; return #this; } -static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic { - self::IC1 ic1 = self::IC1|(1); + self::IC1 /* = core::int */ ic1 = self::IC1|(1); core::print(ic1 as{Unchecked} core::int); } diff --git a/pkg/front_end/testcases/inline_class/issue52525.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/issue52525.dart.strong.transformed.expect index 0bb106c9a44..975baeda291 100644 --- a/pkg/front_end/testcases/inline_class/issue52525.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue52525.dart.strong.transformed.expect @@ -8,17 +8,17 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(core::int id) → self::IC1 { - lowered final self::IC1 #this = id; +static inline-class-member method IC1|(core::int id) → self::IC1 /* = core::int */ { + lowered final self::IC1 /* = core::int */ #this = id; return #this; } -static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic { - self::IC1 ic1 = self::IC1|(1); + self::IC1 /* = core::int */ ic1 = self::IC1|(1); core::print(ic1 as{Unchecked} core::int); } diff --git a/pkg/front_end/testcases/inline_class/issue52525.dart.weak.expect b/pkg/front_end/testcases/inline_class/issue52525.dart.weak.expect index 0bb106c9a44..975baeda291 100644 --- a/pkg/front_end/testcases/inline_class/issue52525.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/issue52525.dart.weak.expect @@ -8,17 +8,17 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(core::int id) → self::IC1 { - lowered final self::IC1 #this = id; +static inline-class-member method IC1|(core::int id) → self::IC1 /* = core::int */ { + lowered final self::IC1 /* = core::int */ #this = id; return #this; } -static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic { - self::IC1 ic1 = self::IC1|(1); + self::IC1 /* = core::int */ ic1 = self::IC1|(1); core::print(ic1 as{Unchecked} core::int); } diff --git a/pkg/front_end/testcases/inline_class/issue52525.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/issue52525.dart.weak.modular.expect index 0bb106c9a44..975baeda291 100644 --- a/pkg/front_end/testcases/inline_class/issue52525.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/issue52525.dart.weak.modular.expect @@ -8,17 +8,17 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(core::int id) → self::IC1 { - lowered final self::IC1 #this = id; +static inline-class-member method IC1|(core::int id) → self::IC1 /* = core::int */ { + lowered final self::IC1 /* = core::int */ #this = id; return #this; } -static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic { - self::IC1 ic1 = self::IC1|(1); + self::IC1 /* = core::int */ ic1 = self::IC1|(1); core::print(ic1 as{Unchecked} core::int); } diff --git a/pkg/front_end/testcases/inline_class/issue52525.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/issue52525.dart.weak.outline.expect index 81924e44b5b..4c5ebd6fed7 100644 --- a/pkg/front_end/testcases/inline_class/issue52525.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/issue52525.dart.weak.outline.expect @@ -8,13 +8,13 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(core::int id) → self::IC1 +static inline-class-member method IC1|(core::int id) → self::IC1 /* = core::int */ ; -static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/issue52525.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/issue52525.dart.weak.transformed.expect index 0bb106c9a44..975baeda291 100644 --- a/pkg/front_end/testcases/inline_class/issue52525.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue52525.dart.weak.transformed.expect @@ -8,17 +8,17 @@ extension type IC1(core::int id) { static redirecting-factory f = self::IC1|f; static tearoff f = self::IC1|_#f#tearOff; } -static inline-class-member method IC1|(core::int id) → self::IC1 { - lowered final self::IC1 #this = id; +static inline-class-member method IC1|(core::int id) → self::IC1 /* = core::int */ { + lowered final self::IC1 /* = core::int */ #this = id; return #this; } -static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#new#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); -static inline-class-member method IC1|f(core::int id) → self::IC1 /* redirection-target: self::IC1| */ +static inline-class-member method IC1|f(core::int id) → self::IC1 /* = core::int */ /* redirection-target: self::IC1| */ return self::IC1|(id); -static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 +static inline-class-member method IC1|_#f#tearOff(core::int id) → self::IC1 /* = core::int */ return self::IC1|(id); static method main() → dynamic { - self::IC1 ic1 = self::IC1|(1); + self::IC1 /* = core::int */ ic1 = self::IC1|(1); core::print(ic1 as{Unchecked} core::int); } diff --git a/pkg/front_end/testcases/inline_class/issue52667.dart.strong.expect b/pkg/front_end/testcases/inline_class/issue52667.dart.strong.expect index 4e46db1941c..687f8ce635c 100644 --- a/pkg/front_end/testcases/inline_class/issue52667.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/issue52667.dart.strong.expect @@ -15,23 +15,23 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(core::int i) → self::FooBar { - lowered final self::FooBar #this = i; +static inline-class-member method FooBar|(core::int i) → self::FooBar /* = core::int */ { + lowered final self::FooBar /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(core::int i) → self::FooBaz { - lowered final self::FooBaz #this = i; +static inline-class-member method FooBaz|(core::int i) → self::FooBaz /* = core::int */ { + lowered final self::FooBaz /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void { - final self::FooBar a = self::FooBar|(0); + final self::FooBar /* = core::int */ a = self::FooBar|(0); #L1: { - final synthesized self::FooBar #0#0 = a; + final synthesized self::FooBar /* = core::int */ #0#0 = a; { final hoisted core::int a; if(let final dynamic #t1 = a = #0#0 as{Unchecked} core::int in true) { diff --git a/pkg/front_end/testcases/inline_class/issue52667.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/issue52667.dart.strong.transformed.expect index bfbccba6121..b4871f3dfec 100644 --- a/pkg/front_end/testcases/inline_class/issue52667.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue52667.dart.strong.transformed.expect @@ -15,23 +15,23 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(core::int i) → self::FooBar { - lowered final self::FooBar #this = i; +static inline-class-member method FooBar|(core::int i) → self::FooBar /* = core::int */ { + lowered final self::FooBar /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(core::int i) → self::FooBaz { - lowered final self::FooBaz #this = i; +static inline-class-member method FooBaz|(core::int i) → self::FooBaz /* = core::int */ { + lowered final self::FooBaz /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void { - final self::FooBar a = self::FooBar|(0); + final self::FooBar /* = core::int */ a = self::FooBar|(0); #L1: { - final synthesized self::FooBar #0#0 = a; + final synthesized self::FooBar /* = core::int */ #0#0 = a; { final hoisted core::int a; if(let final core::int #t1 = a = #0#0 as{Unchecked} core::int in true) { diff --git a/pkg/front_end/testcases/inline_class/issue52667.dart.weak.expect b/pkg/front_end/testcases/inline_class/issue52667.dart.weak.expect index 4e46db1941c..687f8ce635c 100644 --- a/pkg/front_end/testcases/inline_class/issue52667.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/issue52667.dart.weak.expect @@ -15,23 +15,23 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(core::int i) → self::FooBar { - lowered final self::FooBar #this = i; +static inline-class-member method FooBar|(core::int i) → self::FooBar /* = core::int */ { + lowered final self::FooBar /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(core::int i) → self::FooBaz { - lowered final self::FooBaz #this = i; +static inline-class-member method FooBaz|(core::int i) → self::FooBaz /* = core::int */ { + lowered final self::FooBaz /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void { - final self::FooBar a = self::FooBar|(0); + final self::FooBar /* = core::int */ a = self::FooBar|(0); #L1: { - final synthesized self::FooBar #0#0 = a; + final synthesized self::FooBar /* = core::int */ #0#0 = a; { final hoisted core::int a; if(let final dynamic #t1 = a = #0#0 as{Unchecked} core::int in true) { diff --git a/pkg/front_end/testcases/inline_class/issue52667.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/issue52667.dart.weak.modular.expect index 4e46db1941c..687f8ce635c 100644 --- a/pkg/front_end/testcases/inline_class/issue52667.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/issue52667.dart.weak.modular.expect @@ -15,23 +15,23 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(core::int i) → self::FooBar { - lowered final self::FooBar #this = i; +static inline-class-member method FooBar|(core::int i) → self::FooBar /* = core::int */ { + lowered final self::FooBar /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(core::int i) → self::FooBaz { - lowered final self::FooBaz #this = i; +static inline-class-member method FooBaz|(core::int i) → self::FooBaz /* = core::int */ { + lowered final self::FooBaz /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void { - final self::FooBar a = self::FooBar|(0); + final self::FooBar /* = core::int */ a = self::FooBar|(0); #L1: { - final synthesized self::FooBar #0#0 = a; + final synthesized self::FooBar /* = core::int */ #0#0 = a; { final hoisted core::int a; if(let final dynamic #t1 = a = #0#0 as{Unchecked} core::int in true) { diff --git a/pkg/front_end/testcases/inline_class/issue52667.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/issue52667.dart.weak.outline.expect index 673b13b5ed8..a5e9aedb25e 100644 --- a/pkg/front_end/testcases/inline_class/issue52667.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/issue52667.dart.weak.outline.expect @@ -14,13 +14,13 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(core::int i) → self::FooBar +static inline-class-member method FooBar|(core::int i) → self::FooBar /* = core::int */ ; -static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(core::int i) → self::FooBaz +static inline-class-member method FooBaz|(core::int i) → self::FooBaz /* = core::int */ ; -static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void ; diff --git a/pkg/front_end/testcases/inline_class/issue52667.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/issue52667.dart.weak.transformed.expect index bfbccba6121..b4871f3dfec 100644 --- a/pkg/front_end/testcases/inline_class/issue52667.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/issue52667.dart.weak.transformed.expect @@ -15,23 +15,23 @@ extension type FooBaz(core::int i) implements self::Foo { constructor • = self::FooBaz|; tearoff • = self::FooBaz|_#new#tearOff; } -static inline-class-member method FooBar|(core::int i) → self::FooBar { - lowered final self::FooBar #this = i; +static inline-class-member method FooBar|(core::int i) → self::FooBar /* = core::int */ { + lowered final self::FooBar /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar +static inline-class-member method FooBar|_#new#tearOff(core::int i) → self::FooBar /* = core::int */ return self::FooBar|(i); -static inline-class-member method FooBaz|(core::int i) → self::FooBaz { - lowered final self::FooBaz #this = i; +static inline-class-member method FooBaz|(core::int i) → self::FooBaz /* = core::int */ { + lowered final self::FooBaz /* = core::int */ #this = i; return #this; } -static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz +static inline-class-member method FooBaz|_#new#tearOff(core::int i) → self::FooBaz /* = core::int */ return self::FooBaz|(i); static method main() → void { - final self::FooBar a = self::FooBar|(0); + final self::FooBar /* = core::int */ a = self::FooBar|(0); #L1: { - final synthesized self::FooBar #0#0 = a; + final synthesized self::FooBar /* = core::int */ #0#0 = a; { final hoisted core::int a; if(let final core::int #t1 = a = #0#0 as{Unchecked} core::int in true) { diff --git a/pkg/front_end/testcases/inline_class/member_not_found.dart.strong.expect b/pkg/front_end/testcases/inline_class/member_not_found.dart.strong.expect index c06fcd139a6..462a932e42d 100644 --- a/pkg/front_end/testcases/inline_class/member_not_found.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/member_not_found.dart.strong.expect @@ -13,11 +13,11 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|name1(core::int value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void return invalid-expression "pkg/front_end/testcases/inline_class/member_not_found.dart:11:20: Error: Member not found: 'A.name2'. diff --git a/pkg/front_end/testcases/inline_class/member_not_found.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/member_not_found.dart.strong.transformed.expect index c06fcd139a6..462a932e42d 100644 --- a/pkg/front_end/testcases/inline_class/member_not_found.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/member_not_found.dart.strong.transformed.expect @@ -13,11 +13,11 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|name1(core::int value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void return invalid-expression "pkg/front_end/testcases/inline_class/member_not_found.dart:11:20: Error: Member not found: 'A.name2'. diff --git a/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.expect b/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.expect index c06fcd139a6..462a932e42d 100644 --- a/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.expect @@ -13,11 +13,11 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|name1(core::int value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void return invalid-expression "pkg/front_end/testcases/inline_class/member_not_found.dart:11:20: Error: Member not found: 'A.name2'. diff --git a/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.modular.expect index c06fcd139a6..462a932e42d 100644 --- a/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.modular.expect @@ -13,11 +13,11 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|name1(core::int value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void return invalid-expression "pkg/front_end/testcases/inline_class/member_not_found.dart:11:20: Error: Member not found: 'A.name2'. diff --git a/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.outline.expect index c176f62e34c..9e395b02555 100644 --- a/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.outline.expect @@ -6,9 +6,9 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|name1(core::int value) → self::A +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ ; -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void ; diff --git a/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.transformed.expect index c06fcd139a6..462a932e42d 100644 --- a/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/member_not_found.dart.weak.transformed.expect @@ -13,11 +13,11 @@ extension type A(core::int value) { constructor name1 = self::A|name1; tearoff name1 = self::A|_#name1#tearOff; } -static inline-class-member method A|name1(core::int value) → self::A { - lowered final self::A #this = value; +static inline-class-member method A|name1(core::int value) → self::A /* = core::int */ { + lowered final self::A /* = core::int */ #this = value; return #this; } -static inline-class-member method A|_#name1#tearOff(core::int value) → self::A +static inline-class-member method A|_#name1#tearOff(core::int value) → self::A /* = core::int */ return self::A|name1(value); static method method() → void return invalid-expression "pkg/front_end/testcases/inline_class/member_not_found.dart:11:20: Error: Member not found: 'A.name2'. diff --git a/pkg/front_end/testcases/inline_class/method_access.dart.strong.expect b/pkg/front_end/testcases/inline_class/method_access.dart.strong.expect index 8e92cb38148..a0f0b7267cf 100644 --- a/pkg/front_end/testcases/inline_class/method_access.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/method_access.dart.strong.expect @@ -60,13 +60,13 @@ extension type InlineClass(core::int it) { static extension-member method _extension#0|get#setter(lowered final core::Object #this) → core::int return 42; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void {} -static inline-class-member method InlineClass|(core::int it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic { core::int a = self::InlineClass|+(#this, 2); core::int b = self::InlineClass|unary-(#this); core::int c = self::InlineClass|[](#this, 2); @@ -109,35 +109,35 @@ Try correcting the name to the name of an existing setter, or defining a setter core::int n1 = self::InlineClass|call(#this); core::int n2 = self::InlineClass|call(#this); } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int return 42; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int return 87; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int return 123; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void {} -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void {} +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void {} -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void {} +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% return t; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int return 321; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic { +static method test(self::InlineClass /* = core::int */ ic) → dynamic { core::int a = self::InlineClass|+(ic, 2); core::int b = self::InlineClass|unary-(ic); core::int c = self::InlineClass|[](ic, 2); - core::int d = let final self::InlineClass #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; + core::int d = let final self::InlineClass /* = core::int */ #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; core::int e = self::InlineClass|get#getter(ic); () → core::int f = self::InlineClass|get#method(ic); core::int g = let final core::int #t12 = 42 in let final void #t13 = self::InlineClass|set#setter(ic, #t12) in #t12; diff --git a/pkg/front_end/testcases/inline_class/method_access.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/method_access.dart.strong.transformed.expect index fdab8275823..cc4285ca01e 100644 --- a/pkg/front_end/testcases/inline_class/method_access.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/method_access.dart.strong.transformed.expect @@ -60,13 +60,13 @@ extension type InlineClass(core::int it) { static extension-member method _extension#0|get#setter(lowered final core::Object #this) → core::int return 42; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void {} -static inline-class-member method InlineClass|(core::int it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic { core::int a = self::InlineClass|+(#this, 2); core::int b = self::InlineClass|unary-(#this); core::int c = self::InlineClass|[](#this, 2); @@ -109,35 +109,35 @@ Try correcting the name to the name of an existing setter, or defining a setter core::int n1 = self::InlineClass|call(#this); core::int n2 = self::InlineClass|call(#this); } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int return 42; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int return 87; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int return 123; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void {} -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void {} +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void {} -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void {} +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% return t; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int return 321; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic { +static method test(self::InlineClass /* = core::int */ ic) → dynamic { core::int a = self::InlineClass|+(ic, 2); core::int b = self::InlineClass|unary-(ic); core::int c = self::InlineClass|[](ic, 2); - core::int d = let final self::InlineClass #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; + core::int d = let final self::InlineClass /* = core::int */ #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; core::int e = self::InlineClass|get#getter(ic); () → core::int f = self::InlineClass|get#method(ic); core::int g = let final core::int #t12 = 42 in let final void #t13 = self::InlineClass|set#setter(ic, #t12) in #t12; diff --git a/pkg/front_end/testcases/inline_class/method_access.dart.weak.expect b/pkg/front_end/testcases/inline_class/method_access.dart.weak.expect index 8e92cb38148..a0f0b7267cf 100644 --- a/pkg/front_end/testcases/inline_class/method_access.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/method_access.dart.weak.expect @@ -60,13 +60,13 @@ extension type InlineClass(core::int it) { static extension-member method _extension#0|get#setter(lowered final core::Object #this) → core::int return 42; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void {} -static inline-class-member method InlineClass|(core::int it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic { core::int a = self::InlineClass|+(#this, 2); core::int b = self::InlineClass|unary-(#this); core::int c = self::InlineClass|[](#this, 2); @@ -109,35 +109,35 @@ Try correcting the name to the name of an existing setter, or defining a setter core::int n1 = self::InlineClass|call(#this); core::int n2 = self::InlineClass|call(#this); } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int return 42; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int return 87; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int return 123; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void {} -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void {} +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void {} -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void {} +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% return t; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int return 321; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic { +static method test(self::InlineClass /* = core::int */ ic) → dynamic { core::int a = self::InlineClass|+(ic, 2); core::int b = self::InlineClass|unary-(ic); core::int c = self::InlineClass|[](ic, 2); - core::int d = let final self::InlineClass #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; + core::int d = let final self::InlineClass /* = core::int */ #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; core::int e = self::InlineClass|get#getter(ic); () → core::int f = self::InlineClass|get#method(ic); core::int g = let final core::int #t12 = 42 in let final void #t13 = self::InlineClass|set#setter(ic, #t12) in #t12; diff --git a/pkg/front_end/testcases/inline_class/method_access.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/method_access.dart.weak.modular.expect index 8e92cb38148..a0f0b7267cf 100644 --- a/pkg/front_end/testcases/inline_class/method_access.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/method_access.dart.weak.modular.expect @@ -60,13 +60,13 @@ extension type InlineClass(core::int it) { static extension-member method _extension#0|get#setter(lowered final core::Object #this) → core::int return 42; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void {} -static inline-class-member method InlineClass|(core::int it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic { core::int a = self::InlineClass|+(#this, 2); core::int b = self::InlineClass|unary-(#this); core::int c = self::InlineClass|[](#this, 2); @@ -109,35 +109,35 @@ Try correcting the name to the name of an existing setter, or defining a setter core::int n1 = self::InlineClass|call(#this); core::int n2 = self::InlineClass|call(#this); } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int return 42; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int return 87; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int return 123; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void {} -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void {} +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void {} -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void {} +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% return t; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int return 321; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic { +static method test(self::InlineClass /* = core::int */ ic) → dynamic { core::int a = self::InlineClass|+(ic, 2); core::int b = self::InlineClass|unary-(ic); core::int c = self::InlineClass|[](ic, 2); - core::int d = let final self::InlineClass #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; + core::int d = let final self::InlineClass /* = core::int */ #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; core::int e = self::InlineClass|get#getter(ic); () → core::int f = self::InlineClass|get#method(ic); core::int g = let final core::int #t12 = 42 in let final void #t13 = self::InlineClass|set#setter(ic, #t12) in #t12; diff --git a/pkg/front_end/testcases/inline_class/method_access.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/method_access.dart.weak.outline.expect index 9afa2ed27a2..a79ca5a2fa5 100644 --- a/pkg/front_end/testcases/inline_class/method_access.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/method_access.dart.weak.outline.expect @@ -28,37 +28,37 @@ static extension-member method _extension#0|get#setter(lowered final core::Objec ; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void ; -static inline-class-member method InlineClass|(core::int it) → self::InlineClass +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ ; -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic ; -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int ; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int ; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int ; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void ; -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int ; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int ; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void ; -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% ; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int ; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic +static method test(self::InlineClass /* = core::int */ ic) → dynamic ; diff --git a/pkg/front_end/testcases/inline_class/method_access.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/method_access.dart.weak.transformed.expect index fdab8275823..cc4285ca01e 100644 --- a/pkg/front_end/testcases/inline_class/method_access.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/method_access.dart.weak.transformed.expect @@ -60,13 +60,13 @@ extension type InlineClass(core::int it) { static extension-member method _extension#0|get#setter(lowered final core::Object #this) → core::int return 42; static extension-member method _extension#0|set#getter(lowered final core::Object #this, core::int value) → void {} -static inline-class-member method InlineClass|(core::int it) → self::InlineClass { - lowered final self::InlineClass #this = it; +static inline-class-member method InlineClass|(core::int it) → self::InlineClass /* = core::int */ { + lowered final self::InlineClass /* = core::int */ #this = it; return #this; } -static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass +static inline-class-member method InlineClass|_#new#tearOff(core::int it) → self::InlineClass /* = core::int */ return self::InlineClass|(it); -static inline-class-member method InlineClass|test(lowered final self::InlineClass #this) → dynamic { +static inline-class-member method InlineClass|test(lowered final self::InlineClass /* = core::int */ #this) → dynamic { core::int a = self::InlineClass|+(#this, 2); core::int b = self::InlineClass|unary-(#this); core::int c = self::InlineClass|[](#this, 2); @@ -109,35 +109,35 @@ Try correcting the name to the name of an existing setter, or defining a setter core::int n1 = self::InlineClass|call(#this); core::int n2 = self::InlineClass|call(#this); } -static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → dynamic +static inline-class-member method InlineClass|get#test(lowered final self::InlineClass /* = core::int */ #this) → () → dynamic return () → dynamic => self::InlineClass|test(#this); -static inline-class-member method InlineClass|+(lowered final self::InlineClass #this, core::int other) → core::int +static inline-class-member method InlineClass|+(lowered final self::InlineClass /* = core::int */ #this, core::int other) → core::int return 42; -static inline-class-member method InlineClass|unary-(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|unary-(lowered final self::InlineClass /* = core::int */ #this) → core::int return 87; -static inline-class-member method InlineClass|[](lowered final self::InlineClass #this, core::int index) → core::int +static inline-class-member method InlineClass|[](lowered final self::InlineClass /* = core::int */ #this, core::int index) → core::int return 123; -static inline-class-member method InlineClass|[]=(lowered final self::InlineClass #this, core::int index, core::int value) → void {} -static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|[]=(lowered final self::InlineClass /* = core::int */ #this, core::int index, core::int value) → void {} +static inline-class-member method InlineClass|get#getter(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|method(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|method(lowered final self::InlineClass /* = core::int */ #this) → core::int return 42; -static inline-class-member method InlineClass|get#method(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#method(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|method(#this); -static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass #this, core::int value) → void {} -static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% +static inline-class-member method InlineClass|set#setter(lowered final self::InlineClass /* = core::int */ #this, core::int value) → void {} +static inline-class-member method InlineClass|genericMethod(lowered final self::InlineClass /* = core::int */ #this, self::InlineClass|genericMethod::T% t) → self::InlineClass|genericMethod::T% return t; -static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass #this) → (T%) → T% +static inline-class-member method InlineClass|get#genericMethod(lowered final self::InlineClass /* = core::int */ #this) → (T%) → T% return (T% t) → T% => self::InlineClass|genericMethod(#this, t); -static inline-class-member method InlineClass|call(lowered final self::InlineClass #this) → core::int +static inline-class-member method InlineClass|call(lowered final self::InlineClass /* = core::int */ #this) → core::int return 321; -static inline-class-member method InlineClass|get#call(lowered final self::InlineClass #this) → () → core::int +static inline-class-member method InlineClass|get#call(lowered final self::InlineClass /* = core::int */ #this) → () → core::int return () → core::int => self::InlineClass|call(#this); -static method test(self::InlineClass ic) → dynamic { +static method test(self::InlineClass /* = core::int */ ic) → dynamic { core::int a = self::InlineClass|+(ic, 2); core::int b = self::InlineClass|unary-(ic); core::int c = self::InlineClass|[](ic, 2); - core::int d = let final self::InlineClass #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; + core::int d = let final self::InlineClass /* = core::int */ #t8 = ic in let final core::int #t9 = 3 in let final core::int #t10 = 42 in let final void #t11 = self::InlineClass|[]=(#t8, #t9, #t10) in #t10; core::int e = self::InlineClass|get#getter(ic); () → core::int f = self::InlineClass|get#method(ic); core::int g = let final core::int #t12 = 42 in let final void #t13 = self::InlineClass|set#setter(ic, #t12) in #t12; diff --git a/pkg/front_end/testcases/inline_class/procedures.dart.strong.expect b/pkg/front_end/testcases/inline_class/procedures.dart.strong.expect index 3ad376c0453..631c13efb7b 100644 --- a/pkg/front_end/testcases/inline_class/procedures.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/procedures.dart.strong.expect @@ -37,29 +37,29 @@ extension type GenericClass(T% it) { static method staticMethod = self::GenericClass|staticMethod; static method genericStaticMethod = self::GenericClass|genericStaticMethod; } -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void { + self::Class /* = core::int */ local = #this; void localM = self::Class|instanceMethod(#this); () → void localT = self::Class|get#instanceMethod(#this); core::int localG = self::Class|get#instanceGetter(#this); } -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int return 42; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [core::int i = #C1]) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [core::int i = #C1]) → void { + self::Class /* = core::int */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::Class|genericInstanceMethod(#this, s); core::int localG2 = self::Class|genericInstanceMethod(#this, i); core::num localG3 = self::Class|genericInstanceMethod(#this, i); } -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C1]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% return s; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void { self::Class|staticMethod(); @@ -69,29 +69,29 @@ static inline-class-member method Class|staticMethod() → void { } static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% return s; -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void { + self::GenericClass /* = self::GenericClass|instanceMethod::T% */ local = #this; void localM = self::GenericClass|instanceMethod(#this); () → void localT = self::GenericClass|get#instanceMethod(#this); self::GenericClass|instanceMethod::T% localG = self::GenericClass|get#instanceGetter(#this); } -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% return throw ""; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {core::int i = #C1}) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {core::int i = #C1}) → void { + self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::GenericClass|genericInstanceMethod(#this, s); core::int localG2 = self::GenericClass|genericInstanceMethod(#this, i); core::num localG3 = self::GenericClass|genericInstanceMethod(#this, i); } -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C1}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% return s; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void { self::GenericClass|staticMethod(); diff --git a/pkg/front_end/testcases/inline_class/procedures.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/procedures.dart.strong.transformed.expect index 3ad376c0453..631c13efb7b 100644 --- a/pkg/front_end/testcases/inline_class/procedures.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/procedures.dart.strong.transformed.expect @@ -37,29 +37,29 @@ extension type GenericClass(T% it) { static method staticMethod = self::GenericClass|staticMethod; static method genericStaticMethod = self::GenericClass|genericStaticMethod; } -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void { + self::Class /* = core::int */ local = #this; void localM = self::Class|instanceMethod(#this); () → void localT = self::Class|get#instanceMethod(#this); core::int localG = self::Class|get#instanceGetter(#this); } -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int return 42; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [core::int i = #C1]) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [core::int i = #C1]) → void { + self::Class /* = core::int */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::Class|genericInstanceMethod(#this, s); core::int localG2 = self::Class|genericInstanceMethod(#this, i); core::num localG3 = self::Class|genericInstanceMethod(#this, i); } -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C1]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% return s; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void { self::Class|staticMethod(); @@ -69,29 +69,29 @@ static inline-class-member method Class|staticMethod() → void { } static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% return s; -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void { + self::GenericClass /* = self::GenericClass|instanceMethod::T% */ local = #this; void localM = self::GenericClass|instanceMethod(#this); () → void localT = self::GenericClass|get#instanceMethod(#this); self::GenericClass|instanceMethod::T% localG = self::GenericClass|get#instanceGetter(#this); } -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% return throw ""; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {core::int i = #C1}) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {core::int i = #C1}) → void { + self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::GenericClass|genericInstanceMethod(#this, s); core::int localG2 = self::GenericClass|genericInstanceMethod(#this, i); core::num localG3 = self::GenericClass|genericInstanceMethod(#this, i); } -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C1}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% return s; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void { self::GenericClass|staticMethod(); diff --git a/pkg/front_end/testcases/inline_class/procedures.dart.weak.expect b/pkg/front_end/testcases/inline_class/procedures.dart.weak.expect index 3ad376c0453..631c13efb7b 100644 --- a/pkg/front_end/testcases/inline_class/procedures.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/procedures.dart.weak.expect @@ -37,29 +37,29 @@ extension type GenericClass(T% it) { static method staticMethod = self::GenericClass|staticMethod; static method genericStaticMethod = self::GenericClass|genericStaticMethod; } -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void { + self::Class /* = core::int */ local = #this; void localM = self::Class|instanceMethod(#this); () → void localT = self::Class|get#instanceMethod(#this); core::int localG = self::Class|get#instanceGetter(#this); } -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int return 42; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [core::int i = #C1]) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [core::int i = #C1]) → void { + self::Class /* = core::int */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::Class|genericInstanceMethod(#this, s); core::int localG2 = self::Class|genericInstanceMethod(#this, i); core::num localG3 = self::Class|genericInstanceMethod(#this, i); } -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C1]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% return s; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void { self::Class|staticMethod(); @@ -69,29 +69,29 @@ static inline-class-member method Class|staticMethod() → void { } static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% return s; -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void { + self::GenericClass /* = self::GenericClass|instanceMethod::T% */ local = #this; void localM = self::GenericClass|instanceMethod(#this); () → void localT = self::GenericClass|get#instanceMethod(#this); self::GenericClass|instanceMethod::T% localG = self::GenericClass|get#instanceGetter(#this); } -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% return throw ""; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {core::int i = #C1}) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {core::int i = #C1}) → void { + self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::GenericClass|genericInstanceMethod(#this, s); core::int localG2 = self::GenericClass|genericInstanceMethod(#this, i); core::num localG3 = self::GenericClass|genericInstanceMethod(#this, i); } -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C1}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% return s; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void { self::GenericClass|staticMethod(); diff --git a/pkg/front_end/testcases/inline_class/procedures.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/procedures.dart.weak.modular.expect index 3ad376c0453..631c13efb7b 100644 --- a/pkg/front_end/testcases/inline_class/procedures.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/procedures.dart.weak.modular.expect @@ -37,29 +37,29 @@ extension type GenericClass(T% it) { static method staticMethod = self::GenericClass|staticMethod; static method genericStaticMethod = self::GenericClass|genericStaticMethod; } -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void { + self::Class /* = core::int */ local = #this; void localM = self::Class|instanceMethod(#this); () → void localT = self::Class|get#instanceMethod(#this); core::int localG = self::Class|get#instanceGetter(#this); } -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int return 42; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [core::int i = #C1]) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [core::int i = #C1]) → void { + self::Class /* = core::int */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::Class|genericInstanceMethod(#this, s); core::int localG2 = self::Class|genericInstanceMethod(#this, i); core::num localG3 = self::Class|genericInstanceMethod(#this, i); } -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C1]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% return s; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void { self::Class|staticMethod(); @@ -69,29 +69,29 @@ static inline-class-member method Class|staticMethod() → void { } static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% return s; -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void { + self::GenericClass /* = self::GenericClass|instanceMethod::T% */ local = #this; void localM = self::GenericClass|instanceMethod(#this); () → void localT = self::GenericClass|get#instanceMethod(#this); self::GenericClass|instanceMethod::T% localG = self::GenericClass|get#instanceGetter(#this); } -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% return throw ""; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {core::int i = #C1}) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {core::int i = #C1}) → void { + self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::GenericClass|genericInstanceMethod(#this, s); core::int localG2 = self::GenericClass|genericInstanceMethod(#this, i); core::num localG3 = self::GenericClass|genericInstanceMethod(#this, i); } -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C1}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% return s; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void { self::GenericClass|staticMethod(); diff --git a/pkg/front_end/testcases/inline_class/procedures.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/procedures.dart.weak.outline.expect index 0459397fcc5..e48188a84f3 100644 --- a/pkg/front_end/testcases/inline_class/procedures.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/procedures.dart.weak.outline.expect @@ -24,37 +24,37 @@ extension type GenericClass(T% it) { static method staticMethod = self::GenericClass|staticMethod; static method genericStaticMethod = self::GenericClass|genericStaticMethod; } -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void ; -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int ; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [has-declared-initializer core::int i]) → void +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [has-declared-initializer core::int i]) → void ; -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% ; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void ; static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% ; -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void ; -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% ; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {has-declared-initializer core::int i}) → void +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {has-declared-initializer core::int i}) → void ; -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% ; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void ; diff --git a/pkg/front_end/testcases/inline_class/procedures.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/procedures.dart.weak.transformed.expect index 3ad376c0453..631c13efb7b 100644 --- a/pkg/front_end/testcases/inline_class/procedures.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/procedures.dart.weak.transformed.expect @@ -37,29 +37,29 @@ extension type GenericClass(T% it) { static method staticMethod = self::GenericClass|staticMethod; static method genericStaticMethod = self::GenericClass|genericStaticMethod; } -static inline-class-member method Class|instanceMethod(lowered final self::Class #this) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod(lowered final self::Class /* = core::int */ #this) → void { + self::Class /* = core::int */ local = #this; void localM = self::Class|instanceMethod(#this); () → void localT = self::Class|get#instanceMethod(#this); core::int localG = self::Class|get#instanceGetter(#this); } -static inline-class-member method Class|get#instanceMethod(lowered final self::Class #this) → () → void +static inline-class-member method Class|get#instanceMethod(lowered final self::Class /* = core::int */ #this) → () → void return () → void => self::Class|instanceMethod(#this); -static inline-class-member method Class|get#instanceGetter(lowered final self::Class #this) → core::int +static inline-class-member method Class|get#instanceGetter(lowered final self::Class /* = core::int */ #this) → core::int return 42; -static inline-class-member method Class|instanceMethod2(lowered final self::Class #this, core::String s, [core::int i = #C1]) → void { - self::Class local = #this; +static inline-class-member method Class|instanceMethod2(lowered final self::Class /* = core::int */ #this, core::String s, [core::int i = #C1]) → void { + self::Class /* = core::int */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::Class|genericInstanceMethod(#this, s); core::int localG2 = self::Class|genericInstanceMethod(#this, i); core::num localG3 = self::Class|genericInstanceMethod(#this, i); } -static inline-class-member method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void +static inline-class-member method Class|get#instanceMethod2(lowered final self::Class /* = core::int */ #this) → (core::String, [core::int]) → void return (core::String s, [core::int i = #C1]) → void => self::Class|instanceMethod2(#this, s, i); -static inline-class-member method Class|genericInstanceMethod(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% +static inline-class-member method Class|genericInstanceMethod(lowered final self::Class /* = core::int */ #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% return s; -static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class #this) → (S%) → S% +static inline-class-member method Class|get#genericInstanceMethod(lowered final self::Class /* = core::int */ #this) → (S%) → S% return (S% s) → S% => self::Class|genericInstanceMethod(#this, s); static inline-class-member method Class|staticMethod() → void { self::Class|staticMethod(); @@ -69,29 +69,29 @@ static inline-class-member method Class|staticMethod() → void { } static inline-class-member method Class|genericStaticMethod(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% return s; -static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass #this) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod(lowered final self::GenericClass /* = self::GenericClass|instanceMethod::T% */ #this) → void { + self::GenericClass /* = self::GenericClass|instanceMethod::T% */ local = #this; void localM = self::GenericClass|instanceMethod(#this); () → void localT = self::GenericClass|get#instanceMethod(#this); self::GenericClass|instanceMethod::T% localG = self::GenericClass|get#instanceGetter(#this); } -static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass #this) → () → void +static inline-class-member method GenericClass|get#instanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod::T% */ #this) → () → void return () → void => self::GenericClass|instanceMethod(#this); -static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass #this) → self::GenericClass|get#instanceGetter::T% +static inline-class-member method GenericClass|get#instanceGetter(lowered final self::GenericClass /* = self::GenericClass|get#instanceGetter::T% */ #this) → self::GenericClass|get#instanceGetter::T% return throw ""; -static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass #this, core::String s, {core::int i = #C1}) → void { - self::GenericClass local = #this; +static inline-class-member method GenericClass|instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ #this, core::String s, {core::int i = #C1}) → void { + self::GenericClass /* = self::GenericClass|instanceMethod2::T% */ local = #this; core::String localS = s; core::int localI = i; core::String localG1 = self::GenericClass|genericInstanceMethod(#this, s); core::int localG2 = self::GenericClass|genericInstanceMethod(#this, i); core::num localG3 = self::GenericClass|genericInstanceMethod(#this, i); } -static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass #this) → (core::String, {i: core::int}) → void +static inline-class-member method GenericClass|get#instanceMethod2(lowered final self::GenericClass /* = self::GenericClass|get#instanceMethod2::T% */ #this) → (core::String, {i: core::int}) → void return (core::String s, {core::int i = #C1}) → void => self::GenericClass|instanceMethod2(#this, s, i: i); -static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% +static inline-class-member method GenericClass|genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|genericInstanceMethod::T% */ #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% return s; -static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass #this) → (S%) → S% +static inline-class-member method GenericClass|get#genericInstanceMethod(lowered final self::GenericClass /* = self::GenericClass|get#genericInstanceMethod::T% */ #this) → (S%) → S% return (S% s) → S% => self::GenericClass|genericInstanceMethod(#this, s); static inline-class-member method GenericClass|staticMethod() → void { self::GenericClass|staticMethod(); diff --git a/pkg/front_end/testcases/inline_class/representation.dart.strong.expect b/pkg/front_end/testcases/inline_class/representation.dart.strong.expect index 80d79fd9c19..a26545d13c7 100644 --- a/pkg/front_end/testcases/inline_class/representation.dart.strong.expect +++ b/pkg/front_end/testcases/inline_class/representation.dart.strong.expect @@ -42,24 +42,24 @@ extension type Duplicate(core::bool instanceField) { tearoff • = self::Duplicate|_#new#tearOff; } static field core::int Static|staticField = 42; -static inline-class-member method Static|(core::bool instanceField) → self::Static { - lowered final self::Static #this = instanceField; +static inline-class-member method Static|(core::bool instanceField) → self::Static /* = core::bool */ { + lowered final self::Static /* = core::bool */ #this = instanceField; return #this; } -static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static +static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static /* = core::bool */ return self::Static|(instanceField); -static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple { - lowered final self::Multiple #this = instanceField1; +static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple /* = core::bool */ { + lowered final self::Multiple /* = core::bool */ #this = instanceField1; return #this; } -static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1); -static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate { - lowered final self::Duplicate #this; +static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate /* = core::bool */ { + lowered final self::Duplicate /* = core::bool */ #this; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/representation.dart:25:18: Error: Can't use 'instanceField' because it is declared more than once. Duplicate(this.instanceField); ^^^^^^^^^^^^^"; return #this; } -static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField); diff --git a/pkg/front_end/testcases/inline_class/representation.dart.strong.transformed.expect b/pkg/front_end/testcases/inline_class/representation.dart.strong.transformed.expect index 80d79fd9c19..a26545d13c7 100644 --- a/pkg/front_end/testcases/inline_class/representation.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inline_class/representation.dart.strong.transformed.expect @@ -42,24 +42,24 @@ extension type Duplicate(core::bool instanceField) { tearoff • = self::Duplicate|_#new#tearOff; } static field core::int Static|staticField = 42; -static inline-class-member method Static|(core::bool instanceField) → self::Static { - lowered final self::Static #this = instanceField; +static inline-class-member method Static|(core::bool instanceField) → self::Static /* = core::bool */ { + lowered final self::Static /* = core::bool */ #this = instanceField; return #this; } -static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static +static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static /* = core::bool */ return self::Static|(instanceField); -static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple { - lowered final self::Multiple #this = instanceField1; +static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple /* = core::bool */ { + lowered final self::Multiple /* = core::bool */ #this = instanceField1; return #this; } -static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1); -static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate { - lowered final self::Duplicate #this; +static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate /* = core::bool */ { + lowered final self::Duplicate /* = core::bool */ #this; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/representation.dart:25:18: Error: Can't use 'instanceField' because it is declared more than once. Duplicate(this.instanceField); ^^^^^^^^^^^^^"; return #this; } -static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField); diff --git a/pkg/front_end/testcases/inline_class/representation.dart.weak.expect b/pkg/front_end/testcases/inline_class/representation.dart.weak.expect index 80d79fd9c19..a26545d13c7 100644 --- a/pkg/front_end/testcases/inline_class/representation.dart.weak.expect +++ b/pkg/front_end/testcases/inline_class/representation.dart.weak.expect @@ -42,24 +42,24 @@ extension type Duplicate(core::bool instanceField) { tearoff • = self::Duplicate|_#new#tearOff; } static field core::int Static|staticField = 42; -static inline-class-member method Static|(core::bool instanceField) → self::Static { - lowered final self::Static #this = instanceField; +static inline-class-member method Static|(core::bool instanceField) → self::Static /* = core::bool */ { + lowered final self::Static /* = core::bool */ #this = instanceField; return #this; } -static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static +static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static /* = core::bool */ return self::Static|(instanceField); -static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple { - lowered final self::Multiple #this = instanceField1; +static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple /* = core::bool */ { + lowered final self::Multiple /* = core::bool */ #this = instanceField1; return #this; } -static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1); -static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate { - lowered final self::Duplicate #this; +static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate /* = core::bool */ { + lowered final self::Duplicate /* = core::bool */ #this; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/representation.dart:25:18: Error: Can't use 'instanceField' because it is declared more than once. Duplicate(this.instanceField); ^^^^^^^^^^^^^"; return #this; } -static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField); diff --git a/pkg/front_end/testcases/inline_class/representation.dart.weak.modular.expect b/pkg/front_end/testcases/inline_class/representation.dart.weak.modular.expect index 80d79fd9c19..a26545d13c7 100644 --- a/pkg/front_end/testcases/inline_class/representation.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inline_class/representation.dart.weak.modular.expect @@ -42,24 +42,24 @@ extension type Duplicate(core::bool instanceField) { tearoff • = self::Duplicate|_#new#tearOff; } static field core::int Static|staticField = 42; -static inline-class-member method Static|(core::bool instanceField) → self::Static { - lowered final self::Static #this = instanceField; +static inline-class-member method Static|(core::bool instanceField) → self::Static /* = core::bool */ { + lowered final self::Static /* = core::bool */ #this = instanceField; return #this; } -static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static +static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static /* = core::bool */ return self::Static|(instanceField); -static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple { - lowered final self::Multiple #this = instanceField1; +static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple /* = core::bool */ { + lowered final self::Multiple /* = core::bool */ #this = instanceField1; return #this; } -static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1); -static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate { - lowered final self::Duplicate #this; +static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate /* = core::bool */ { + lowered final self::Duplicate /* = core::bool */ #this; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/representation.dart:25:18: Error: Can't use 'instanceField' because it is declared more than once. Duplicate(this.instanceField); ^^^^^^^^^^^^^"; return #this; } -static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField); diff --git a/pkg/front_end/testcases/inline_class/representation.dart.weak.outline.expect b/pkg/front_end/testcases/inline_class/representation.dart.weak.outline.expect index 43da7a9d5f8..b8ef18006df 100644 --- a/pkg/front_end/testcases/inline_class/representation.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inline_class/representation.dart.weak.outline.expect @@ -28,15 +28,15 @@ extension type Duplicate(core::bool instanceField) { tearoff • = self::Duplicate|_#new#tearOff; } static field core::int Static|staticField; -static inline-class-member method Static|(core::bool instanceField) → self::Static +static inline-class-member method Static|(core::bool instanceField) → self::Static /* = core::bool */ ; -static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static +static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static /* = core::bool */ return self::Static|(instanceField); -static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple +static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple /* = core::bool */ ; -static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1); -static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate +static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate /* = core::bool */ ; -static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField); diff --git a/pkg/front_end/testcases/inline_class/representation.dart.weak.transformed.expect b/pkg/front_end/testcases/inline_class/representation.dart.weak.transformed.expect index 80d79fd9c19..a26545d13c7 100644 --- a/pkg/front_end/testcases/inline_class/representation.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inline_class/representation.dart.weak.transformed.expect @@ -42,24 +42,24 @@ extension type Duplicate(core::bool instanceField) { tearoff • = self::Duplicate|_#new#tearOff; } static field core::int Static|staticField = 42; -static inline-class-member method Static|(core::bool instanceField) → self::Static { - lowered final self::Static #this = instanceField; +static inline-class-member method Static|(core::bool instanceField) → self::Static /* = core::bool */ { + lowered final self::Static /* = core::bool */ #this = instanceField; return #this; } -static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static +static inline-class-member method Static|_#new#tearOff(core::bool instanceField) → self::Static /* = core::bool */ return self::Static|(instanceField); -static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple { - lowered final self::Multiple #this = instanceField1; +static inline-class-member method Multiple|(core::bool instanceField1) → self::Multiple /* = core::bool */ { + lowered final self::Multiple /* = core::bool */ #this = instanceField1; return #this; } -static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple +static inline-class-member method Multiple|_#new#tearOff(core::bool instanceField1) → self::Multiple /* = core::bool */ return self::Multiple|(instanceField1); -static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate { - lowered final self::Duplicate #this; +static inline-class-member method Duplicate|(core::int instanceField) → self::Duplicate /* = core::bool */ { + lowered final self::Duplicate /* = core::bool */ #this; final dynamic #t1 = invalid-expression "pkg/front_end/testcases/inline_class/representation.dart:25:18: Error: Can't use 'instanceField' because it is declared more than once. Duplicate(this.instanceField); ^^^^^^^^^^^^^"; return #this; } -static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate +static inline-class-member method Duplicate|_#new#tearOff(core::int instanceField) → self::Duplicate /* = core::bool */ return self::Duplicate|(instanceField); diff --git a/pkg/front_end/testcases/textual_outline.status b/pkg/front_end/testcases/textual_outline.status index 929a389e8b4..712b2800536 100644 --- a/pkg/front_end/testcases/textual_outline.status +++ b/pkg/front_end/testcases/textual_outline.status @@ -155,6 +155,7 @@ inline_class/extension_types/method_access: FormatterCrash inline_class/extension_types/non_covariant_type_parameter: FormatterCrash inline_class/extension_types/procedures: FormatterCrash inline_class/extension_types/representation: FormatterCrash +inline_class/extension_types/representation_type: FormatterCrash inline_class/extension_types/supertype_conflict: FormatterCrash inline_class/extension_types/super_extension_type_conflict: FormatterCrash inline_class/extension_types/unresolved_type_extension_type_this: FormatterCrash diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart index a2044ec58a9..958a8a52716 100644 --- a/pkg/kernel/lib/ast.dart +++ b/pkg/kernel/lib/ast.dart @@ -11690,20 +11690,17 @@ class ExtensionType extends DartType { Reference extensionTypeDeclarationReference, List typeArguments, Nullability declaredNullability) { - // TODO(johnniwinther): Handle transitive dependencies. ExtensionTypeDeclaration extensionTypeDeclaration = extensionTypeDeclarationReference.asExtensionTypeDeclaration; - if (extensionTypeDeclaration.typeParameters.isEmpty) { - return extensionTypeDeclaration.declaredRepresentationType; - } else { - assert(extensionTypeDeclaration.typeParameters.length == - typeArguments.length); - return Substitution.fromPairs( - extensionTypeDeclaration.typeParameters, typeArguments) - .substituteType(extensionTypeDeclaration.declaredRepresentationType) - .withDeclaredNullability(uniteNullabilities(declaredNullability, - extensionTypeDeclaration.declaredRepresentationType.nullability)); + DartType result = Substitution.fromPairs( + extensionTypeDeclaration.typeParameters, typeArguments) + .substituteType(extensionTypeDeclaration.declaredRepresentationType); + if (result is ExtensionType) { + result = result.instantiatedRepresentationType; } + result = result.withDeclaredNullability(combineNullabilitiesForSubstitution( + result.nullability, declaredNullability)); + return result; } @override diff --git a/pkg/kernel/lib/text/ast_to_text.dart b/pkg/kernel/lib/text/ast_to_text.dart index 0f3014725de..1b15591fc3e 100644 --- a/pkg/kernel/lib/text/ast_to_text.dart +++ b/pkg/kernel/lib/text/ast_to_text.dart @@ -2654,6 +2654,10 @@ class Printer extends Visitor with VisitorVoidMixin { state = Printer.WORD; } writeNullability(node.declaredNullability); + + writeWord("/* ="); + writeType(node.instantiatedRepresentationType); + writeWord("*/"); } @override @@ -2708,8 +2712,8 @@ class Printer extends Visitor with VisitorVoidMixin { writeType(node.left); writeSpaced('&'); writeType(node.right); - writeWord("/* '"); + writeWord("/* '"); writeDartTypeNullability(node.left, inComment: true); writeWord("' & '"); writeDartTypeNullability(node.right, inComment: true); diff --git a/pkg/vm/testcases/transformations/type_flow/transformer/inline_class.dart.expect b/pkg/vm/testcases/transformations/type_flow/transformer/inline_class.dart.expect index 94b404410b4..c0c5d8df547 100644 --- a/pkg/vm/testcases/transformations/type_flow/transformer/inline_class.dart.expect +++ b/pkg/vm/testcases/transformations/type_flow/transformer/inline_class.dart.expect @@ -17,16 +17,16 @@ extension type IC2(core::int id) { static method bar1 = self::IC2|bar1; constructor • = self::IC2|; } -[@vm.unboxing-info.metadata=(i)->i]static inline-class-member method IC2|([@vm.inferred-type.metadata=int] core::int id) → self::IC2 { - lowered final self::IC2 #this = id; +[@vm.unboxing-info.metadata=(i)->i]static inline-class-member method IC2|([@vm.inferred-type.metadata=int] core::int id) → self::IC2 /* = core::int */ { + lowered final self::IC2 /* = core::int */ #this = id; return #this; } -[@vm.unboxing-info.metadata=(i)->i]static inline-class-member method IC2|foo1([@vm.inferred-type.metadata=dart.core::_Smi (value: 42)] lowered final self::IC2 #this) → core::int +[@vm.unboxing-info.metadata=(i)->i]static inline-class-member method IC2|foo1([@vm.inferred-type.metadata=dart.core::_Smi (value: 42)] lowered final self::IC2 /* = core::int */ #this) → core::int return [@vm.direct-call.metadata=dart.core::_IntegerImplementation.+] [@vm.inferred-type.metadata=int (skip check)] _in::unsafeCast(#this).{core::num::+}(1){(core::num) → core::int}; -[@vm.unboxing-info.metadata=()->i]static inline-class-member method IC2|bar1() → self::IC2 +[@vm.unboxing-info.metadata=()->i]static inline-class-member method IC2|bar1() → self::IC2 /* = core::int */ return [@vm.inferred-type.metadata=int] self::IC2|([@vm.direct-call.metadata=dart.core::_IntegerImplementation.+] [@vm.inferred-type.metadata=int (skip check)] _in::unsafeCast(#C1).{core::num::+}(1){(core::num) → core::int}); static method main() → dynamic { - let final self::C4 #t1 = new self::C4::•() in let final self::IC2 #t2 = [@vm.inferred-type.metadata=dart.core::_Smi (value: 42)] self::IC2|(42) in [@vm.direct-call.metadata=#lib::C4.foo3] [@vm.inferred-type.metadata=!? (skip check)] #t1.{self::C4::foo3}(){(self::IC2) → dynamic}; + let final self::C4 #t1 = new self::C4::•() in let final self::IC2 /* = core::int */ #t2 = [@vm.inferred-type.metadata=dart.core::_Smi (value: 42)] self::IC2|(42) in [@vm.direct-call.metadata=#lib::C4.foo3] [@vm.inferred-type.metadata=!? (skip check)] #t1.{self::C4::foo3}(){(self::IC2 /* = core::int */) → dynamic}; } constants { #C1 = 42