blob: 642c19b1c9596bf1591c875969f9132754d70f87 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The argument type 'Null' can't be assigned to the parameter type 'num'.
// extendsNumReturnArg/*<Null>*/(null);
// ^
//
// pkg/front_end/testcases/general/issue45660.dart:9:35: Error: The argument type 'String' can't be assigned to the parameter type 'num'.
// 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<core::num>(invalid-expression "pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The argument type 'Null' can't be assigned to the parameter type 'num'.
extendsNumReturnArg/*<Null>*/(null);
^" in let Null #t1 = null in #t1 == null ?{core::num} #t1 as{TypeError} core::num : #t1{core::num}){(core::num) → core::num};
self::extendsNumReturnArg<core::num>(invalid-expression "pkg/front_end/testcases/general/issue45660.dart:9:35: Error: The argument type 'String' can't be assigned to the parameter type 'num'.
extendsNumReturnArg/*<String>*/(\"\");
^" in "" as{TypeError} core::num){(core::num) core::num};
}
static method main() dynamic {}