7bbf2921db
Fixes https://github.com/dart-lang/sdk/issues/42357 Change-Id: I07341ba02361201ec2130fb7b6cb87a25b9b5f51 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151662 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Leaf Petersen <leafp@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Reviewed-by: Régis Crelier <regis@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>
20 lines
691 B
Dart
20 lines
691 B
Dart
// Copyright (c) 2020, 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.
|
|
|
|
// Opted-in library for parameter_checks_test.dart.
|
|
|
|
import 'dart:async' show FutureOr;
|
|
|
|
foo1(int a) {}
|
|
foo2(int a, [int b = 1, String c = '']) {}
|
|
foo3({int a = 0, required int b}) {}
|
|
foo4a<T>(T a) {}
|
|
foo4b<T extends Object>(T a) {}
|
|
foo5a<T>(FutureOr<T> a) {}
|
|
foo5b<T extends Object>(FutureOr<T> a) {}
|
|
foo6a<T extends FutureOr<S>, S extends U, U extends int?>(T a) {}
|
|
foo6b<T extends FutureOr<S>, S extends U, U extends int>(T a) {}
|
|
|
|
void Function(int) bar() => (int x) {};
|