blob: 85da5a806e88b2ba43bdf55368bd1f85cbc09d11 [file] [log] [blame]
library;
//
// Problems in library:
//
// 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'.
// Try changing the operand or remove the type arguments.
// var b1 = this.it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:16:16: 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.
// var b2 = it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:17:19: Error: The setter 'it' isn't defined for the class 'InlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var c1 = this.it = 42; // Error, should not resolve to extension method.
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:18:14: Error: The setter 'it' isn't defined for the class 'InlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var c2 = it = 42; // Error, should not resolve to extension method.
// ^^
//
// 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'.
// Try changing the operand or remove the type arguments.
// var b1 = this.it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:27:16: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'.
// Try changing the operand or remove the type arguments.
// var b2 = it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:28:19: Error: The setter 'it' isn't defined for the class 'GenericInlineClass<T>'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var c1 = this.it = t; // Error, should not resolve to extension method.
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:29:14: Error: The setter 'it' isn't defined for the class 'GenericInlineClass<T>'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var c2 = it = t; // Error, should not resolve to extension method.
// ^^
//
// 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()'.
// Try changing the operand or remove the type arguments.
// var b1 = this.it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:38:16: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'.
// Try changing the operand or remove the type arguments.
// var b2 = it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:39:19: Error: The setter 'it' isn't defined for the class 'FunctionInlineClass<T>'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var c1 = this.it = t; // Error, should not resolve to extension method.
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:40:14: Error: The setter 'it' isn't defined for the class 'FunctionInlineClass<T>'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var c2 = it = t; // Error, should not resolve to extension method.
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:56:24: Error: The getter 't' isn't defined for the class 'GenericFunctionInlineClass'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named 't'.
// var c1 = this.it = t; // Error, should not resolve to extension method.
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:56:19: Error: The setter 'it' isn't defined for the class 'GenericFunctionInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var c1 = this.it = t; // Error, should not resolve to extension method.
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:57:19: Error: The getter 't' isn't defined for the class 'GenericFunctionInlineClass'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named 't'.
// var c2 = it = t; // Error, should not resolve to extension method.
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:57:14: Error: The setter 'it' isn't defined for the class 'GenericFunctionInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var c2 = it = t; // Error, should not resolve to extension method.
// ^^
//
// 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'.
// Try changing the operand or remove the type arguments.
// var b1 = this.it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:73:16: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'.
// Try changing the operand or remove the type arguments.
// var b2 = it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:74:19: Error: The setter 'it' isn't defined for the class 'DynamicInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var c1 = this.it = 42; // Error, should not resolve to extension method.
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:75:14: Error: The setter 'it' isn't defined for the class 'DynamicInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var c2 = it = 42; // Error, should not resolve to extension method.
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:87:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
// var a3 = this.b; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:88:14: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
// var a4 = b; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:89:20: 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.
// var b1 = this.a<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:90:15: 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.
// var b2 = a<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:91:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
// var b3 = this.b<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:91:20: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'.
// Try changing the operand or remove the type arguments.
// var b3 = this.b<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:92:14: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
// var b4 = b<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:92:15: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'.
// Try changing the operand or remove the type arguments.
// var b4 = b<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:93:19: Error: The setter 'a' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'a'.
// var c1 = this.a = 42; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:94:14: Error: The setter 'a' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'a'.
// var c2 = a = 42; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:95:19: Error: The setter 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'b'.
// var c3 = this.b = '42'; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:96:14: Error: The setter 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'b'.
// var c4 = b = '42'; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:97:20: Error: The method 'call' isn't defined for the class 'int'.
// Try correcting the name to the name of an existing method, or defining a method named 'call'.
// var d1 = this.a(); // Error
// ^^^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:98:15: Error: The method 'call' isn't defined for the class 'int'.
// Try correcting the name to the name of an existing method, or defining a method named 'call'.
// var d2 = a(); // Error
// ^^^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:99:21: Error: The method 'call' isn't defined for the class 'int'.
// Try correcting the name to the name of an existing method, or defining a method named 'call'.
// var d3 = this.a.call(); // Error
// ^^^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:100:16: Error: The method 'call' isn't defined for the class 'int'.
// Try correcting the name to the name of an existing method, or defining a method named 'call'.
// var d4 = a.call(); // Error
// ^^^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:101:19: Error: The method 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing method, or defining a method named 'b'.
// var e1 = this.b(); // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:102:14: Error: The method 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing method, or defining a method named 'b'.
// var e2 = b(); // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:103:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
// var e3 = this.b.call(); // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:104:14: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
// var e4 = b.call(); // Error
// ^
//
// 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.
// var a2 = inlineClass.it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:119:24: Error: The setter 'it' isn't defined for the class 'InlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var a3 = inlineClass.it = 42; // Error,
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:123:33: Error: The static type of the explicit instantiation operand must be a generic function type but is 'String'.
// Try changing the operand or remove the type arguments.
// var b2 = genericInlineClass.it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:124:31: Error: The setter 'it' isn't defined for the class 'GenericInlineClass<String>'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var b3 = genericInlineClass.it = '42'; // Error, should not
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:128:34: Error: The static type of the explicit instantiation operand must be a generic function type but is 'String Function()'.
// Try changing the operand or remove the type arguments.
// var c2 = functionInlineClass.it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:131:32: Error: The setter 'it' isn't defined for the class 'FunctionInlineClass<String>'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var c5 = functionInlineClass.it = () => '42'; // Error, should not
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:139:39: Error: The setter 'it' isn't defined for the class 'GenericFunctionInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var d6 = genericFunctionInlineClass.it = <T>() => throw ''; // Error, should
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:143:33: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'.
// Try changing the operand or remove the type arguments.
// var e2 = dynamicInlineClass.it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:145:31: Error: The setter 'it' isn't defined for the class 'DynamicInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
// var e4 = dynamicInlineClass.it = '42'; // Error, should not resolve
// ^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:149:34: 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.
// var f2 = erroneousInlineClass.a<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:150:33: Error: The setter 'a' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'a'.
// var f3 = erroneousInlineClass.a = 42; // Error, should not resolve
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:152:33: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
// var g1 = erroneousInlineClass.b;
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:153:34: 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.
// var g2 = erroneousInlineClass.a<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:154:33: Error: The setter 'b' isn't defined for the class 'ErroneousInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'b'.
// var g3 = erroneousInlineClass.b = '42'; // Error, should not resolve
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:157:31: Error: The getter '_it' isn't defined for the class 'PrivateInlineClass'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named '_it'.
// var h1 = privateInlineClass._it; // Error
// ^^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:158:31: Error: The getter '_it' isn't defined for the class 'PrivateInlineClass'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named '_it'.
// var h2 = privateInlineClass._it<int>; // Error
// ^^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:158:34: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'.
// Try changing the operand or remove the type arguments.
// var h2 = privateInlineClass._it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access.dart:159:31: Error: The setter '_it' isn't defined for the class 'PrivateInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named '_it'.
// var h3 = privateInlineClass._it = 42; // Error
// ^^^
//
import self as self;
import "dart:core" as core;
import "org-dartlang-testcase:///field_access_lib.dart";
extension /* unnamed */ _extension#0 on dynamic {
set it = self::_extension#0|set#it;
}
inline class InlineClass /* declaredRepresentationType = core::int */ {
method test = self::InlineClass|test;
tearoff test = self::InlineClass|get#test;
constructor = self::InlineClass|;
tearoff = self::InlineClass|_#new#tearOff;
}
inline class GenericInlineClass<T extends core::Object? = dynamic> /* declaredRepresentationType = T% */ {
method test = self::GenericInlineClass|test;
tearoff test = self::GenericInlineClass|get#test;
constructor = self::GenericInlineClass|;
tearoff = self::GenericInlineClass|_#new#tearOff;
}
inline class FunctionInlineClass<T extends core::Object? = dynamic> /* declaredRepresentationType = () → T% */ {
method test = self::FunctionInlineClass|test;
tearoff test = self::FunctionInlineClass|get#test;
constructor = self::FunctionInlineClass|;
tearoff = self::FunctionInlineClass|_#new#tearOff;
}
inline class GenericFunctionInlineClass /* declaredRepresentationType = <T extends core::Object? = dynamic>() → T% */ {
method test = self::GenericFunctionInlineClass|test;
tearoff test = self::GenericFunctionInlineClass|get#test;
constructor = self::GenericFunctionInlineClass|;
tearoff = self::GenericFunctionInlineClass|_#new#tearOff;
}
inline class DynamicInlineClass /* declaredRepresentationType = dynamic */ {
method test = self::DynamicInlineClass|test;
tearoff test = self::DynamicInlineClass|get#test;
constructor = self::DynamicInlineClass|;
tearoff = self::DynamicInlineClass|_#new#tearOff;
}
inline class ErroneousInlineClass /* declaredRepresentationType = core::int */ {
method test = self::ErroneousInlineClass|test;
tearoff test = self::ErroneousInlineClass|get#test;
constructor = self::ErroneousInlineClass|;
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;
return #this;
}
static inline-class-member method InlineClass|_#new#tearOff(dynamic it) → self::InlineClass
return self::InlineClass|(it);
static inline-class-member method InlineClass|test(lowered final self::InlineClass #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'.
Try changing the operand or remove the type arguments.
var b1 = this.it<int>; // Error
^";
invalid-type b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:16:16: 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.
var b2 = it<int>; // Error
^";
core::int c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:17:19: Error: The setter 'it' isn't defined for the class 'InlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var c1 = this.it = 42; // Error, should not resolve to extension method.
^^" in #this{<unresolved>}.it = 42;
core::int c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:18:14: Error: The setter 'it' isn't defined for the class 'InlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var c2 = it = 42; // Error, should not resolve to extension method.
^^" in #this{<unresolved>}.it = 42;
}
static inline-class-member method InlineClass|get#test(lowered final self::InlineClass #this) → () → void
return () void => self::InlineClass|test(#this);
static inline-class-member method GenericInlineClass|<T extends core::Object? = dynamic>(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<T extends core::Object? = dynamic>(dynamic it) → self::GenericInlineClass<self::GenericInlineClass|_#new#tearOff::T%>
return self::GenericInlineClass|<self::GenericInlineClass|_#new#tearOff::T%>(it);
static inline-class-member method GenericInlineClass|test<T extends core::Object? = dynamic>(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'.
Try changing the operand or remove the type arguments.
var b1 = this.it<int>; // Error
^";
invalid-type b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:27:16: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T'.
Try changing the operand or remove the type arguments.
var b2 = it<int>; // Error
^";
self::GenericInlineClass|test::T% c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:28:19: Error: The setter 'it' isn't defined for the class 'GenericInlineClass<T>'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var c1 = this.it = t; // Error, should not resolve to extension method.
^^" in #this{<unresolved>}.it = t;
self::GenericInlineClass|test::T% c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:29:14: Error: The setter 'it' isn't defined for the class 'GenericInlineClass<T>'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var c2 = it = t; // Error, should not resolve to extension method.
^^" in #this{<unresolved>}.it = t;
}
static inline-class-member method GenericInlineClass|get#test<T extends core::Object? = dynamic>(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<self::GenericInlineClass|get#test::T%>(#this, t);
static inline-class-member method FunctionInlineClass|<T extends core::Object? = dynamic>(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<T extends core::Object? = dynamic>(dynamic it) → self::FunctionInlineClass<self::FunctionInlineClass|_#new#tearOff::T%>
return self::FunctionInlineClass|<self::FunctionInlineClass|_#new#tearOff::T%>(it);
static inline-class-member method FunctionInlineClass|test<T extends core::Object? = dynamic>(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()'.
Try changing the operand or remove the type arguments.
var b1 = this.it<int>; // Error
^";
invalid-type b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:38:16: Error: The static type of the explicit instantiation operand must be a generic function type but is 'T Function()'.
Try changing the operand or remove the type arguments.
var b2 = it<int>; // Error
^";
() self::FunctionInlineClass|test::T% c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:39:19: Error: The setter 'it' isn't defined for the class 'FunctionInlineClass<T>'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var c1 = this.it = t; // Error, should not resolve to extension method.
^^" in #this{<unresolved>}.it = t;
() self::FunctionInlineClass|test::T% c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:40:14: Error: The setter 'it' isn't defined for the class 'FunctionInlineClass<T>'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var c2 = it = t; // Error, should not resolve to extension method.
^^" in #this{<unresolved>}.it = t;
self::FunctionInlineClass|test::T% d1 = (#this as{Unchecked} () self::FunctionInlineClass|test::T%)(){() self::FunctionInlineClass|test::T%};
self::FunctionInlineClass|test::T% d2 = (#this as{Unchecked} () self::FunctionInlineClass|test::T%)(){() self::FunctionInlineClass|test::T%};
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<T extends core::Object? = dynamic>(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<self::FunctionInlineClass|get#test::T%>(#this, t);
static inline-class-member method GenericFunctionInlineClass|(dynamic it) self::GenericFunctionInlineClass {
lowered final self::GenericFunctionInlineClass #this = it;
return #this;
}
static inline-class-member method GenericFunctionInlineClass|_#new#tearOff(dynamic it) → self::GenericFunctionInlineClass
return self::GenericFunctionInlineClass|(it);
static inline-class-member method GenericFunctionInlineClass|test(lowered final self::GenericFunctionInlineClass #this) → void {
<T extends core::Object? = dynamic>() T% a1 = #this as{Unchecked} <T extends core::Object? = dynamic>() → T%;
<T extends core::Object? = dynamic>() T% a2 = #this as{Unchecked} <T extends core::Object? = dynamic>() → T%;
() core::int a3 = (#this as{Unchecked} <T extends core::Object? = dynamic>() T%)<core::int>;
() core::int a4 = (#this as{Unchecked} <T extends core::Object? = dynamic>() T%)<core::int>;
() core::int b1 = (#this as{Unchecked} <T extends core::Object? = dynamic>() T%)<core::int>;
() core::int b2 = (#this as{Unchecked} <T extends core::Object? = dynamic>() T%)<core::int>;
dynamic c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:56:19: Error: The setter 'it' isn't defined for the class 'GenericFunctionInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var c1 = this.it = t; // Error, should not resolve to extension method.
^^" in #this{<unresolved>}.it = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:56:24: Error: The getter 't' isn't defined for the class 'GenericFunctionInlineClass'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 't'.
var c1 = this.it = t; // Error, should not resolve to extension method.
^" in #this{<unresolved>}.t;
dynamic c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:57:14: Error: The setter 'it' isn't defined for the class 'GenericFunctionInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var c2 = it = t; // Error, should not resolve to extension method.
^^" in #this{<unresolved>}.it = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:57:19: Error: The getter 't' isn't defined for the class 'GenericFunctionInlineClass'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 't'.
var c2 = it = t; // Error, should not resolve to extension method.
^" in #this{<unresolved>}.t;
dynamic d1 = (#this as{Unchecked} <T extends core::Object? = dynamic>() → T%)<dynamic>(){() → dynamic};
dynamic d2 = (#this as{Unchecked} <T extends core::Object? = dynamic>() → T%)<dynamic>(){() → dynamic};
dynamic d3 = (#this as{Unchecked} <T extends core::Object? = dynamic>() → T%)<dynamic>(){() → dynamic};
dynamic d4 = (#this as{Unchecked} <T extends core::Object? = dynamic>() → T%)<dynamic>(){() → dynamic};
core::int e1 = (#this as{Unchecked} <T extends core::Object? = dynamic>() → T%)<core::int>(){() → core::int};
core::int e2 = (#this as{Unchecked} <T extends core::Object? = dynamic>() → T%)<core::int>(){() → core::int};
}
static inline-class-member method GenericFunctionInlineClass|get#test(lowered final self::GenericFunctionInlineClass #this) → () → void
return () → void => self::GenericFunctionInlineClass|test(#this);
static inline-class-member method DynamicInlineClass|(dynamic it) → self::DynamicInlineClass {
lowered final self::DynamicInlineClass #this = it;
return #this;
}
static inline-class-member method DynamicInlineClass|_#new#tearOff(dynamic it) → self::DynamicInlineClass
return self::DynamicInlineClass|(it);
static inline-class-member method DynamicInlineClass|test(lowered final self::DynamicInlineClass #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'.
Try changing the operand or remove the type arguments.
var b1 = this.it<int>; // Error
^";
invalid-type b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:73:16: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'.
Try changing the operand or remove the type arguments.
var b2 = it<int>; // Error
^";
core::int c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:74:19: Error: The setter 'it' isn't defined for the class 'DynamicInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var c1 = this.it = 42; // Error, should not resolve to extension method.
^^" in #this{<unresolved>}.it = 42;
core::int c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:75:14: Error: The setter 'it' isn't defined for the class 'DynamicInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var c2 = it = 42; // Error, should not resolve to extension method.
^^" in #this{<unresolved>}.it = 42;
dynamic d1 = (#this as{Unchecked} dynamic){dynamic}.call();
dynamic d2 = (#this as{Unchecked} dynamic){dynamic}.call();
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
return () → void => self::DynamicInlineClass|test(#this);
static inline-class-member method ErroneousInlineClass|(dynamic a, dynamic b) → self::ErroneousInlineClass {
lowered final self::ErroneousInlineClass #this = b;
return #this;
}
static inline-class-member method ErroneousInlineClass|_#new#tearOff(dynamic a, dynamic b) → self::ErroneousInlineClass
return self::ErroneousInlineClass|(a, b);
static inline-class-member method ErroneousInlineClass|test(lowered final self::ErroneousInlineClass #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'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
var a3 = this.b; // Error
^" in #this{<unresolved>}.b;
dynamic a4 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:88:14: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
var a4 = b; // Error
^" in #this{<unresolved>}.b;
invalid-type b1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:89:20: 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.
var b1 = this.a<int>; // Error
^";
invalid-type b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:90:15: 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.
var b2 = a<int>; // Error
^";
invalid-type b3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:91:20: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'.
Try changing the operand or remove the type arguments.
var b3 = this.b<int>; // Error
^";
invalid-type b4 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:92:15: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'.
Try changing the operand or remove the type arguments.
var b4 = b<int>; // Error
^";
core::int c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:93:19: Error: The setter 'a' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'a'.
var c1 = this.a = 42; // Error
^" in #this{<unresolved>}.a = 42;
core::int c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:94:14: Error: The setter 'a' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'a'.
var c2 = a = 42; // Error
^" in #this{<unresolved>}.a = 42;
core::String c3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:95:19: Error: The setter 'b' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'b'.
var c3 = this.b = '42'; // Error
^" in #this{<unresolved>}.b = "42";
core::String c4 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:96:14: Error: The setter 'b' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'b'.
var c4 = b = '42'; // Error
^" in #this{<unresolved>}.b = "42";
dynamic d1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:97:20: Error: The method 'call' isn't defined for the class 'int'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
var d1 = this.a(); // Error
^^^^" in (#this as{Unchecked} core::int){<unresolved>}.call();
dynamic d2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:98:15: Error: The method 'call' isn't defined for the class 'int'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
var d2 = a(); // Error
^^^^" in (#this as{Unchecked} core::int){<unresolved>}.call();
dynamic d3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:99:21: Error: The method 'call' isn't defined for the class 'int'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
var d3 = this.a.call(); // Error
^^^^" in (#this as{Unchecked} core::int){<unresolved>}.call();
dynamic d4 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:100:16: Error: The method 'call' isn't defined for the class 'int'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
var d4 = a.call(); // Error
^^^^" in (#this as{Unchecked} core::int){<unresolved>}.call();
dynamic e1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:101:19: Error: The method 'b' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing method, or defining a method named 'b'.
var e1 = this.b(); // Error
^" in #this{<unresolved>}.b();
dynamic e2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:102:14: Error: The method 'b' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing method, or defining a method named 'b'.
var e2 = b(); // Error
^" in #this{<unresolved>}.b();
dynamic e3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:103:19: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
var e3 = this.b.call(); // Error
^" in #this{<unresolved>}.b{dynamic}.call();
dynamic e4 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:104:14: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
var e4 = b.call(); // Error
^" in #this{<unresolved>}.b{dynamic}.call();
}
static inline-class-member method ErroneousInlineClass|get#test(lowered final self::ErroneousInlineClass #this) → () → void
return () → void => self::ErroneousInlineClass|test(#this);
static method test(self::InlineClass inlineClass, self::GenericInlineClass<core::String> genericInlineClass, self::FunctionInlineClass<core::String> functionInlineClass, self::GenericFunctionInlineClass genericFunctionInlineClass, self::DynamicInlineClass dynamicInlineClass, self::ErroneousInlineClass erroneousInlineClass, #lib1::PrivateInlineClass 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.
var a2 = inlineClass.it<int>; // Error
^";
core::int a3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:119:24: Error: The setter 'it' isn't defined for the class 'InlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var a3 = inlineClass.it = 42; // Error,
^^" in inlineClass{<unresolved>}.it = 42;
core::String b1 = genericInlineClass as{Unchecked} core::String;
invalid-type b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:123:33: Error: The static type of the explicit instantiation operand must be a generic function type but is 'String'.
Try changing the operand or remove the type arguments.
var b2 = genericInlineClass.it<int>; // Error
^";
core::String b3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:124:31: Error: The setter 'it' isn't defined for the class 'GenericInlineClass<String>'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var b3 = genericInlineClass.it = '42'; // Error, should not
^^" in genericInlineClass{<unresolved>}.it = "42";
() → core::String c1 = functionInlineClass as{Unchecked} () → core::String;
invalid-type c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:128:34: Error: The static type of the explicit instantiation operand must be a generic function type but is 'String Function()'.
Try changing the operand or remove the type arguments.
var c2 = functionInlineClass.it<int>; // Error
^";
core::String c3 = (functionInlineClass as{Unchecked} () → core::String)(){() → core::String};
core::String c4 = (functionInlineClass as{Unchecked} () → core::String)(){() → core::String};
() → core::String c5 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:131:32: Error: The setter 'it' isn't defined for the class 'FunctionInlineClass<String>'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var c5 = functionInlineClass.it = () => '42'; // Error, should not
^^" in functionInlineClass{<unresolved>}.it = () → core::String => "42";
<T extends core::Object? = dynamic>() → T% d1 = genericFunctionInlineClass as{Unchecked} <T extends core::Object? = dynamic>() → T%;
() → core::int d2 = (genericFunctionInlineClass as{Unchecked} <T extends core::Object? = dynamic>() → T%)<core::int>;
() → core::int d3 = (genericFunctionInlineClass as{Unchecked} <T extends core::Object? = dynamic>() → T%)<core::int>;
core::int d4 = (genericFunctionInlineClass as{Unchecked} <T extends core::Object? = dynamic>() → T%)<core::int>(){() → core::int};
core::int d5 = (genericFunctionInlineClass as{Unchecked} <T extends core::Object? = dynamic>() → T%)<core::int>(){() → core::int};
<T extends core::Object? = dynamic>() → Never d6 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:139:39: Error: The setter 'it' isn't defined for the class 'GenericFunctionInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var d6 = genericFunctionInlineClass.it = <T>() => throw ''; // Error, should
^^" in genericFunctionInlineClass{<unresolved>}.it = <T extends core::Object? = dynamic>() → Never => throw "";
dynamic e1 = dynamicInlineClass as{Unchecked} dynamic;
invalid-type e2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:143:33: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'.
Try changing the operand or remove the type arguments.
var e2 = dynamicInlineClass.it<int>; // Error
^";
dynamic e3 = (dynamicInlineClass as{Unchecked} dynamic){dynamic}.call();
core::String e4 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:145:31: Error: The setter 'it' isn't defined for the class 'DynamicInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'it'.
var e4 = dynamicInlineClass.it = '42'; // Error, should not resolve
^^" in dynamicInlineClass{<unresolved>}.it = "42";
core::int f1 = erroneousInlineClass as{Unchecked} core::int;
invalid-type f2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:149:34: 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.
var f2 = erroneousInlineClass.a<int>; // Error
^";
core::int f3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:150:33: Error: The setter 'a' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'a'.
var f3 = erroneousInlineClass.a = 42; // Error, should not resolve
^" in erroneousInlineClass{<unresolved>}.a = 42;
dynamic g1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:152:33: Error: The getter 'b' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
var g1 = erroneousInlineClass.b;
^" in erroneousInlineClass{<unresolved>}.b;
invalid-type g2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:153:34: 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.
var g2 = erroneousInlineClass.a<int>; // Error
^";
core::String g3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:154:33: Error: The setter 'b' isn't defined for the class 'ErroneousInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'b'.
var g3 = erroneousInlineClass.b = '42'; // Error, should not resolve
^" in erroneousInlineClass{<unresolved>}.b = "42";
dynamic h1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:157:31: Error: The getter '_it' isn't defined for the class 'PrivateInlineClass'.
Try correcting the name to the name of an existing getter, or defining a getter or field named '_it'.
var h1 = privateInlineClass._it; // Error
^^^" in privateInlineClass{<unresolved>}._it;
invalid-type h2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:158:34: Error: The static type of the explicit instantiation operand must be a generic function type but is 'dynamic'.
Try changing the operand or remove the type arguments.
var h2 = privateInlineClass._it<int>; // Error
^";
core::int h3 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access.dart:159:31: Error: The setter '_it' isn't defined for the class 'PrivateInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named '_it'.
var h3 = privateInlineClass._it = 42; // Error
^^^" in privateInlineClass{<unresolved>}._it = 42;
}
library;
//
// Problems in library:
//
// 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'.
// Try changing the operand or remove the type arguments.
// var b1 = this._it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access_lib.dart:10:17: 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.
// var b2 = _it<int>; // Error
// ^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access_lib.dart:11:19: Error: The setter '_it' isn't defined for the class 'PrivateInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named '_it'.
// var c1 = this._it = 42; // Error, should not resolve to extension method.
// ^^^
//
// pkg/front_end/testcases/inline_class/extension_types/field_access_lib.dart:12:14: Error: The setter '_it' isn't defined for the class 'PrivateInlineClass'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named '_it'.
// var c2 = _it = 42; // Error, should not resolve to extension method.
// ^^^
//
import self as self2;
import "dart:core" as core;
inline class PrivateInlineClass /* declaredRepresentationType = core::int */ {
method test = self2::PrivateInlineClass|test;
tearoff test = self2::PrivateInlineClass|get#test;
constructor • = self2::PrivateInlineClass|;
tearoff • = self2::PrivateInlineClass|_#new#tearOff;
}
static inline-class-member method PrivateInlineClass|(dynamic _it) → self2::PrivateInlineClass {
lowered final self2::PrivateInlineClass #this = _it;
return #this;
}
static inline-class-member method PrivateInlineClass|_#new#tearOff(dynamic _it) → self2::PrivateInlineClass
return self2::PrivateInlineClass|(_it);
static inline-class-member method PrivateInlineClass|test(lowered final self2::PrivateInlineClass #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'.
Try changing the operand or remove the type arguments.
var b1 = this._it<int>; // Error
^";
invalid-type b2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access_lib.dart:10:17: 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.
var b2 = _it<int>; // Error
^";
core::int c1 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access_lib.dart:11:19: Error: The setter '_it' isn't defined for the class 'PrivateInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named '_it'.
var c1 = this._it = 42; // Error, should not resolve to extension method.
^^^" in #this{<unresolved>}._it = 42;
core::int c2 = invalid-expression "pkg/front_end/testcases/inline_class/extension_types/field_access_lib.dart:12:14: Error: The setter '_it' isn't defined for the class 'PrivateInlineClass'.
Try correcting the name to the name of an existing setter, or defining a setter or field named '_it'.
var c2 = _it = 42; // Error, should not resolve to extension method.
^^^" in #this{<unresolved>}._it = 42;
}
static inline-class-member method PrivateInlineClass|get#test(lowered final self2::PrivateInlineClass #this) → () → void
return () → void => self2::PrivateInlineClass|test(#this);