5af05598eb
Closes #40081. Bug: http://dartbug.com/40081 Change-Id: I4032af18164af05034c2706cba8f62be39c636c4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133994 Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
24 lines
537 B
Dart
24 lines
537 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.
|
|
|
|
void foo({required String s}) {}
|
|
void Function({required String s}) g = ({required String s}) {};
|
|
|
|
class A {
|
|
A({required int x});
|
|
foo({required int y}) {}
|
|
void Function({required String s}) f = ({required String s}) {};
|
|
}
|
|
|
|
bar() {
|
|
foo();
|
|
new A();
|
|
var a = new A(x: 42);
|
|
a.foo();
|
|
a.f();
|
|
g();
|
|
}
|
|
|
|
main() {}
|