library; // // Problems in library: // // pkg/front_end/testcases/general/cascade.dart:26:5: Error: A value of type 'List' can't be assigned to a variable of type 'int'. // - 'List' is from 'dart:core'. // [1] // ^ // // pkg/front_end/testcases/general/cascade.dart:28:13: Error: The getter 'last' isn't defined for the class 'int'. // Try correcting the name to the name of an existing getter, or defining a getter or field named 'last'. // ..first.last.toString() // ^^^^ // // pkg/front_end/testcases/general/cascade.dart:29:12: Error: The operator '[]' isn't defined for the class 'int'. // Try correcting the operator to an existing operator, or defining a '[]' operator. // ..first[0].toString() // ^ // // pkg/front_end/testcases/general/cascade.dart:30:11: Error: The getter 'last' isn't defined for the class 'int'. // Try correcting the name to the name of an existing getter, or defining a getter or field named 'last'. // ..[0].last.toString(); // ^^^^ // import self as self; import "dart:core" as core; static method main() → dynamic { core::List* list = let final core::List* #t1 = [1] in block { #t1.{core::List::add}(2); #t1.{core::List::add}(3); #t1.{core::List::addAll}([4, 5]); } =>#t1; core::print(list); let final core::List* #t2 = list in block { #t2.{core::List::add}(2); #t2.{core::List::length}; #t2.{core::List::length} = 0; } =>#t2; core::print(list); let final core::List* #t3 = list in block { #t3.{core::List::add}(2); #t3.{core::List::[]}(0); #t3.{core::List::[]=}(0, 87); } =>#t3; core::print(list); list = let final core::List* #t4 = [let final Never* #t5 = invalid-expression "pkg/front_end/testcases/general/cascade.dart:26:5: Error: A value of type 'List' can't be assigned to a variable of type 'int'. - 'List' is from 'dart:core'. [1] ^" in [1] as{TypeError} core::int*] in block { invalid-expression "pkg/front_end/testcases/general/cascade.dart:28:13: Error: The getter 'last' isn't defined for the class 'int'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'last'. ..first.last.toString() ^^^^".{core::Object::toString}(); invalid-expression "pkg/front_end/testcases/general/cascade.dart:29:12: Error: The operator '[]' isn't defined for the class 'int'. Try correcting the operator to an existing operator, or defining a '[]' operator. ..first[0].toString() ^".{core::Object::toString}(); invalid-expression "pkg/front_end/testcases/general/cascade.dart:30:11: Error: The getter 'last' isn't defined for the class 'int'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'last'. ..[0].last.toString(); ^^^^".{core::Object::toString}(); } =>#t4; core::print(list); }