| library /*isLegacy*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/promoted_null_aware_access.dart:5:1: Error: Library doesn't support null safety. |
| // // @dart=2.9 |
| // ^^^^^^^^^^^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| static method method<T extends core::Object* = dynamic>(self::method::T* o) → dynamic { |
| if(o is{ForLegacy} core::String*) { |
| let final self::method::T* & core::String* /* '*' & '*' = '*' */ #t1 = o{self::method::T* & core::String* /* '*' & '*' = '*' */} in #t1 == null ?{core::int*} null : #t1.{core::String::length}{core::int*}; |
| } |
| } |
| static method main() → dynamic { |
| self::method<core::String*>(""); |
| } |