903c16e773
Closes #45660. Bug: https://github.com/dart-lang/sdk/issues/45660 Change-Id: I6d28d339c0db1993773988c6bbd7f26bd4147c16 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195514 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
15 lines
425 B
Dart
15 lines
425 B
Dart
// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// @dart=2.9
|
|
|
|
T Function<T extends num>(T) extendsNumReturnArg = <S extends num>(S s) => s;
|
|
|
|
functionInvocations() {
|
|
extendsNumReturnArg/*<Null>*/(null);
|
|
extendsNumReturnArg/*<String>*/("");
|
|
}
|
|
|
|
main() {}
|