Files
sdk/pkg/front_end/testcases/general/issue45660.dart
T
Dmitry Stefantsov 903c16e773 [cfe] Don't report locations for function-type type parameters
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>
2021-04-16 12:33:51 +00:00

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() {}