Files
sdk/pkg/front_end/testcases/general/issue45330_lib.dart
T
Johnni Winther 5c65c68669 [cfe] Handle cyclic bounds on generic function types as type arguments
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>
2021-03-19 17:54:37 +00:00

37 lines
1.4 KiB
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.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
// Long comment to increase error offset.
part of 'issue45330.dart';
testInPart() {
genericMethod<void Function<T extends T>()>();
}