blob: 46b750fb7aab3458077ca9107424effbf5ee8ba6 [file] [log] [blame]
library /*isLegacy*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue45660.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/issue45660.dart:11:22: Error: Inferred type argument 'String' doesn't conform to the bound 'num' of the type variable 'T' on 'call'.
// Try specifying type arguments explicitly so that they conform to the bounds.
// extendsNumReturnArg/*<String>*/("");
// ^
//
import self as self;
import "dart:core" as core;
static field <T extends core::num* = dynamic>(T*) →* T* extendsNumReturnArg = <S extends core::num*>(S* s) S* => s;
static method functionInvocations() dynamic {
self::extendsNumReturnArg<Null>(null){(Null) →* Null};
self::extendsNumReturnArg<core::String*>(""){(core::String*) →* core::String*};
}
static method main() dynamic {}