5c65c68669
This also handles reporting of cyclic bounds in parts and sets the bound of a cyclic type parameter to InvalidType to avoid looping on the bound later, as for instance in computation of NORM. Closes #45330 Change-Id: Ida20dc5b44b08a6f8674a402d801314a9172fa8a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192142 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
14 lines
350 B
Dart
14 lines
350 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.
|
|
|
|
part 'issue45330_lib.dart';
|
|
|
|
void genericMethod<T>() {}
|
|
|
|
testInMain() {
|
|
genericMethod<void Function<T extends T>()>();
|
|
}
|
|
|
|
main() {}
|