| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/missing_toplevel.dart:27:48: Error: The method '+' isn't defined for the class 'EmptyClass'. |
| // - 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'. |
| // Try correcting the name to the name of an existing method, or defining a method named '+'. |
| // var missingBinary = classWithProperty.property += 2; |
| // ^ |
| // |
| // pkg/front_end/testcases/general/missing_toplevel.dart:28:40: Error: The method '[]' isn't defined for the class 'ClassWithIndexSet'. |
| // - 'ClassWithIndexSet' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'. |
| // Try correcting the name to the name of an existing method, or defining a method named '[]'. |
| // var missingIndexGet = classWithIndexSet[0] ??= 2; |
| // ^ |
| // |
| // pkg/front_end/testcases/general/missing_toplevel.dart:29:40: Error: The method '[]=' isn't defined for the class 'ClassWithIndexGet'. |
| // - 'ClassWithIndexGet' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'. |
| // Try correcting the name to the name of an existing method, or defining a method named '[]='. |
| // var missingIndexSet = classWithIndexGet[0] ??= 2; |
| // ^ |
| // |
| // pkg/front_end/testcases/general/missing_toplevel.dart:30:37: Error: The getter 'property' isn't defined for the class 'EmptyClass'. |
| // - 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'. |
| // Try correcting the name to the name of an existing getter, or defining a getter or field named 'property'. |
| // var missingPropertyGet = emptyClass.property; |
| // ^^^^^^^^ |
| // |
| // pkg/front_end/testcases/general/missing_toplevel.dart:31:37: Error: The setter 'property' isn't defined for the class 'EmptyClass'. |
| // - 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'. |
| // Try correcting the name to the name of an existing setter, or defining a setter or field named 'property'. |
| // var missingPropertySet = emptyClass.property = 42; |
| // ^^^^^^^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class EmptyClass extends core::Object { |
| synthetic constructor •() → self::EmptyClass* |
| : super core::Object::•() |
| ; |
| } |
| class ClassWithProperty extends core::Object { |
| field self::EmptyClass* property = null; |
| synthetic constructor •() → self::ClassWithProperty* |
| : super core::Object::•() |
| ; |
| } |
| class ClassWithIndexSet extends core::Object { |
| synthetic constructor •() → self::ClassWithIndexSet* |
| : super core::Object::•() |
| ; |
| operator []=(core::int* index, core::int* value) → void {} |
| } |
| class ClassWithIndexGet extends core::Object { |
| synthetic constructor •() → self::ClassWithIndexGet* |
| : super core::Object::•() |
| ; |
| operator [](core::int* index) → core::int* |
| return 42; |
| } |
| static field self::EmptyClass* emptyClass = new self::EmptyClass::•(); |
| static field self::ClassWithProperty* classWithProperty = new self::ClassWithProperty::•(); |
| static field self::ClassWithIndexSet* classWithIndexSet = new self::ClassWithIndexSet::•(); |
| static field self::ClassWithIndexGet* classWithIndexGet = new self::ClassWithIndexGet::•(); |
| static field dynamic missingBinary = let final self::ClassWithProperty* #t1 = self::classWithProperty in #t1.{self::ClassWithProperty::property} = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:27:48: Error: The method '+' isn't defined for the class 'EmptyClass'. |
| - 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'. |
| Try correcting the name to the name of an existing method, or defining a method named '+'. |
| var missingBinary = classWithProperty.property += 2; |
| ^" as{TypeError} self::EmptyClass*; |
| static field dynamic missingIndexGet = let final self::ClassWithIndexSet* #t2 = self::classWithIndexSet in let final core::int* #t3 = 0 in let final dynamic #t4 = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:28:40: Error: The method '[]' isn't defined for the class 'ClassWithIndexSet'. |
| - 'ClassWithIndexSet' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'. |
| Try correcting the name to the name of an existing method, or defining a method named '[]'. |
| var missingIndexGet = classWithIndexSet[0] ??= 2; |
| ^" in #t4.{core::Object::==}(null) ?{dynamic} let final core::int* #t5 = 2 in let final void #t6 = #t2.{self::ClassWithIndexSet::[]=}(#t3, #t5) in #t5 : #t4; |
| static field core::int* missingIndexSet = let final self::ClassWithIndexGet* #t7 = self::classWithIndexGet in let final core::int* #t8 = 0 in let final core::int* #t9 = #t7.{self::ClassWithIndexGet::[]}(#t8) in #t9.{core::num::==}(null) ?{core::int*} let final core::int* #t10 = 2 in let final void #t11 = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:29:40: Error: The method '[]=' isn't defined for the class 'ClassWithIndexGet'. |
| - 'ClassWithIndexGet' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'. |
| Try correcting the name to the name of an existing method, or defining a method named '[]='. |
| var missingIndexSet = classWithIndexGet[0] ??= 2; |
| ^" in #t10 : #t9; |
| static field dynamic missingPropertyGet = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:30:37: Error: The getter 'property' isn't defined for the class 'EmptyClass'. |
| - 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'. |
| Try correcting the name to the name of an existing getter, or defining a getter or field named 'property'. |
| var missingPropertyGet = emptyClass.property; |
| ^^^^^^^^"; |
| static field core::int* missingPropertySet = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:31:37: Error: The setter 'property' isn't defined for the class 'EmptyClass'. |
| - 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'. |
| Try correcting the name to the name of an existing setter, or defining a setter or field named 'property'. |
| var missingPropertySet = emptyClass.property = 42; |
| ^^^^^^^^"; |
| static method main() → dynamic {} |