fdc765faad
TEST=existing Change-Id: I0a8fdf09f742b55357411f12dc6164d4050bb83c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196283 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
19 lines
717 B
Plaintext
19 lines
717 B
Plaintext
library;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// 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.call<Null>(null);
|
|
self::extendsNumReturnArg.call<core::String*>("");
|
|
}
|
|
static method main() → dynamic {}
|