blob: dff9bf58285cff5cb2744b58ab3311fad87ae413 [file] [log] [blame]
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*>("");
}