| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:10:18: Error: The method 'instanceMethod' isn't defined for the class 'Class'. |
| // Try correcting the name to the name of an existing method, or defining a method named 'instanceMethod'. |
| // var localM = instanceMethod(); |
| // ^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:11:18: Error: The getter 'instanceMethod' isn't defined for the class 'Class'. |
| // Try correcting the name to the name of an existing getter, or defining a getter or field named 'instanceMethod'. |
| // var localT = instanceMethod; |
| // ^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:12:18: Error: The getter 'instanceGetter' isn't defined for the class 'Class'. |
| // Try correcting the name to the name of an existing getter, or defining a getter or field named 'instanceGetter'. |
| // var localG = instanceGetter; |
| // ^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:21:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'Class'. |
| // Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| // var localG1 = genericInstanceMethod(s); |
| // ^^^^^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:22:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'Class'. |
| // Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| // var localG2 = genericInstanceMethod(i); |
| // ^^^^^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:23:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'Class'. |
| // Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| // var localG3 = genericInstanceMethod<num>(i); |
| // ^^^^^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:43:18: Error: The method 'instanceMethod' isn't defined for the class 'GenericClass<T>'. |
| // Try correcting the name to the name of an existing method, or defining a method named 'instanceMethod'. |
| // var localM = instanceMethod(); |
| // ^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:44:18: Error: The getter 'instanceMethod' isn't defined for the class 'GenericClass<T>'. |
| // Try correcting the name to the name of an existing getter, or defining a getter or field named 'instanceMethod'. |
| // var localT = instanceMethod; |
| // ^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:45:18: Error: The getter 'instanceGetter' isn't defined for the class 'GenericClass<T>'. |
| // Try correcting the name to the name of an existing getter, or defining a getter or field named 'instanceGetter'. |
| // var localG = instanceGetter; |
| // ^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:54:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'GenericClass<T>'. |
| // Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| // var localG1 = genericInstanceMethod(s); |
| // ^^^^^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:55:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'GenericClass<T>'. |
| // Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| // var localG2 = genericInstanceMethod(i); |
| // ^^^^^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:56:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'GenericClass<T>'. |
| // Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| // var localG3 = genericInstanceMethod<num>(i); |
| // ^^^^^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:6:13: Error: Final field 'it' is not initialized. |
| // Try to initialize the field in the declaration or in every constructor. |
| // final int it; |
| // ^^ |
| // |
| // pkg/front_end/testcases/inline_class/procedures.dart:39:11: Error: Final field 'it' is not initialized. |
| // Try to initialize the field in the declaration or in every constructor. |
| // final T it; |
| // ^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| inline class Class /* declaredRepresentationType = core::int */ { |
| method instanceMethod = self::Class|instanceMethod; |
| tearoff instanceMethod = self::Class|get#instanceMethod; |
| get instanceGetter = self::Class|get#instanceGetter; |
| method instanceMethod2 = self::Class|instanceMethod2; |
| tearoff instanceMethod2 = self::Class|get#instanceMethod2; |
| method genericInstanceMethod = self::Class|genericInstanceMethod; |
| tearoff genericInstanceMethod = self::Class|get#genericInstanceMethod; |
| static method staticMethod = self::Class|staticMethod; |
| static method genericStaticMethod = self::Class|genericStaticMethod; |
| } |
| inline class GenericClass<T extends core::Object? = dynamic> /* declaredRepresentationType = T% */ { |
| method instanceMethod = self::GenericClass|instanceMethod; |
| tearoff instanceMethod = self::GenericClass|get#instanceMethod; |
| get instanceGetter = self::GenericClass|get#instanceGetter; |
| method instanceMethod2 = self::GenericClass|instanceMethod2; |
| tearoff instanceMethod2 = self::GenericClass|get#instanceMethod2; |
| method genericInstanceMethod = self::GenericClass|genericInstanceMethod; |
| tearoff genericInstanceMethod = self::GenericClass|get#genericInstanceMethod; |
| static method staticMethod = self::GenericClass|staticMethod; |
| static method genericStaticMethod = self::GenericClass|genericStaticMethod; |
| } |
| static method Class|instanceMethod(lowered final self::Class #this) → void { |
| self::Class local = #this; |
| dynamic localM = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:10:18: Error: The method 'instanceMethod' isn't defined for the class 'Class'. |
| Try correcting the name to the name of an existing method, or defining a method named 'instanceMethod'. |
| var localM = instanceMethod(); |
| ^^^^^^^^^^^^^^" in #this{<unresolved>}.instanceMethod(); |
| dynamic localT = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:11:18: Error: The getter 'instanceMethod' isn't defined for the class 'Class'. |
| Try correcting the name to the name of an existing getter, or defining a getter or field named 'instanceMethod'. |
| var localT = instanceMethod; |
| ^^^^^^^^^^^^^^" in #this{<unresolved>}.instanceMethod; |
| dynamic localG = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:12:18: Error: The getter 'instanceGetter' isn't defined for the class 'Class'. |
| Try correcting the name to the name of an existing getter, or defining a getter or field named 'instanceGetter'. |
| var localG = instanceGetter; |
| ^^^^^^^^^^^^^^" in #this{<unresolved>}.instanceGetter; |
| } |
| static method Class|get#instanceMethod(lowered final self::Class #this) → () → void |
| return () → void => self::Class|instanceMethod(#this); |
| static method Class|get#instanceGetter(lowered final self::Class #this) → core::int |
| return 42; |
| static method Class|instanceMethod2(lowered final self::Class #this, core::String s, [core::int i = #C1]) → void { |
| self::Class local = #this; |
| core::String localS = s; |
| core::int localI = i; |
| dynamic localG1 = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:21:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'Class'. |
| Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| var localG1 = genericInstanceMethod(s); |
| ^^^^^^^^^^^^^^^^^^^^^" in #this{<unresolved>}.genericInstanceMethod(s); |
| dynamic localG2 = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:22:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'Class'. |
| Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| var localG2 = genericInstanceMethod(i); |
| ^^^^^^^^^^^^^^^^^^^^^" in #this{<unresolved>}.genericInstanceMethod(i); |
| dynamic localG3 = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:23:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'Class'. |
| Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| var localG3 = genericInstanceMethod<num>(i); |
| ^^^^^^^^^^^^^^^^^^^^^" in #this{<unresolved>}.genericInstanceMethod<core::num>(i); |
| } |
| static method Class|get#instanceMethod2(lowered final self::Class #this) → (core::String, [core::int]) → void |
| return (core::String s, [core::int i = #C1]) → void => self::Class|instanceMethod2(#this, s, i); |
| static method Class|genericInstanceMethod<S extends core::Object? = dynamic>(lowered final self::Class #this, self::Class|genericInstanceMethod::S% s) → self::Class|genericInstanceMethod::S% |
| return s; |
| static method Class|get#genericInstanceMethod(lowered final self::Class #this) → <S extends core::Object? = dynamic>(S%) → S% |
| return <S extends core::Object? = dynamic>(S% s) → S% => self::Class|genericInstanceMethod<S%>(#this, s); |
| static method Class|staticMethod() → void { |
| self::Class|staticMethod(); |
| core::int localG1 = self::Class|genericStaticMethod<core::int>(0); |
| core::String localG2 = self::Class|genericStaticMethod<core::String>(""); |
| core::num localG3 = self::Class|genericStaticMethod<core::num>(0); |
| } |
| static method Class|genericStaticMethod<S extends core::Object? = dynamic>(self::Class|genericStaticMethod::S% s) → self::Class|genericStaticMethod::S% |
| return s; |
| static method GenericClass|instanceMethod<T extends core::Object? = dynamic>(lowered final self::GenericClass<self::GenericClass|instanceMethod::T%> #this) → void { |
| self::GenericClass<self::GenericClass|instanceMethod::T%> local = #this; |
| dynamic localM = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:43:18: Error: The method 'instanceMethod' isn't defined for the class 'GenericClass<T>'. |
| Try correcting the name to the name of an existing method, or defining a method named 'instanceMethod'. |
| var localM = instanceMethod(); |
| ^^^^^^^^^^^^^^" in #this{<unresolved>}.instanceMethod(); |
| dynamic localT = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:44:18: Error: The getter 'instanceMethod' isn't defined for the class 'GenericClass<T>'. |
| Try correcting the name to the name of an existing getter, or defining a getter or field named 'instanceMethod'. |
| var localT = instanceMethod; |
| ^^^^^^^^^^^^^^" in #this{<unresolved>}.instanceMethod; |
| dynamic localG = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:45:18: Error: The getter 'instanceGetter' isn't defined for the class 'GenericClass<T>'. |
| Try correcting the name to the name of an existing getter, or defining a getter or field named 'instanceGetter'. |
| var localG = instanceGetter; |
| ^^^^^^^^^^^^^^" in #this{<unresolved>}.instanceGetter; |
| } |
| static method GenericClass|get#instanceMethod<T extends core::Object? = dynamic>(lowered final self::GenericClass<self::GenericClass|get#instanceMethod::T%> #this) → () → void |
| return () → void => self::GenericClass|instanceMethod<self::GenericClass|get#instanceMethod::T%>(#this); |
| static method GenericClass|get#instanceGetter<T extends core::Object? = dynamic>(lowered final self::GenericClass<self::GenericClass|get#instanceGetter::T%> #this) → self::GenericClass|get#instanceGetter::T% |
| return throw ""; |
| static method GenericClass|instanceMethod2<T extends core::Object? = dynamic>(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; |
| dynamic localG1 = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:54:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'GenericClass<T>'. |
| Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| var localG1 = genericInstanceMethod(s); |
| ^^^^^^^^^^^^^^^^^^^^^" in #this{<unresolved>}.genericInstanceMethod(s); |
| dynamic localG2 = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:55:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'GenericClass<T>'. |
| Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| var localG2 = genericInstanceMethod(i); |
| ^^^^^^^^^^^^^^^^^^^^^" in #this{<unresolved>}.genericInstanceMethod(i); |
| dynamic localG3 = invalid-expression "pkg/front_end/testcases/inline_class/procedures.dart:56:19: Error: The method 'genericInstanceMethod' isn't defined for the class 'GenericClass<T>'. |
| Try correcting the name to the name of an existing method, or defining a method named 'genericInstanceMethod'. |
| var localG3 = genericInstanceMethod<num>(i); |
| ^^^^^^^^^^^^^^^^^^^^^" in #this{<unresolved>}.genericInstanceMethod<core::num>(i); |
| } |
| static method GenericClass|get#instanceMethod2<T extends core::Object? = dynamic>(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<self::GenericClass|get#instanceMethod2::T%>(#this, s, i: i); |
| static method GenericClass|genericInstanceMethod<T extends core::Object? = dynamic, S extends core::Object? = dynamic>(lowered final self::GenericClass<self::GenericClass|genericInstanceMethod::T%> #this, self::GenericClass|genericInstanceMethod::S% s) → self::GenericClass|genericInstanceMethod::S% |
| return s; |
| static method GenericClass|get#genericInstanceMethod<T extends core::Object? = dynamic>(lowered final self::GenericClass<self::GenericClass|get#genericInstanceMethod::T%> #this) → <S extends core::Object? = dynamic>(S%) → S% |
| return <S extends core::Object? = dynamic>(S% s) → S% => self::GenericClass|genericInstanceMethod<self::GenericClass|get#genericInstanceMethod::T%, S%>(#this, s); |
| static method GenericClass|staticMethod() → void { |
| self::GenericClass|staticMethod(); |
| core::int localG1 = self::GenericClass|genericStaticMethod<core::int>(0); |
| core::String localG2 = self::GenericClass|genericStaticMethod<core::String>(""); |
| core::num localG3 = self::GenericClass|genericStaticMethod<core::num>(0); |
| } |
| static method GenericClass|genericStaticMethod<S extends core::Object? = dynamic>(self::GenericClass|genericStaticMethod::S% s) → self::GenericClass|genericStaticMethod::S% |
| return s; |
| |
| constants { |
| #C1 = 42 |
| } |