blob: 9643100440b3e8bf73a8e840d8b390b9256f2fe2 [file] [log] [blame] [edit]
// Copyright (c) 2024, 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.
// Tests that formals named `_` in function types don't use the non-binding type
// parameter `_`.
// SharedOptions=--enable-experiment=wildcard-variables
void genericFunction<_ extends void Function<_>(_, _), _>() {}
// ^
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_CLASS
// [cfe] Type '_' not found.
// ^
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_CLASS
// [cfe] Type '_' not found.