Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2119. Actualize nnbd/static_errors_A12* description #3048

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions LanguageFeatures/nnbd/static_errors_A12_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
// 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.

/// @assertion It is an error if a named parameter that is part of a required
/// group is not bound to an argument at a call site
/// @assertion It is an error if a required named parameter is not bound to an
/// argument at a call site.
///
/// @description Check that it is an error if a named parameter that is part of a
/// required group is not bound to an argument at a call site
/// @description Check that it is an error a required named parameter is not
/// bound to an argument at a call site
/// @author [email protected]


class C {
static void test1({required int x}) {}
void test2({required int x}) {}
Expand Down
9 changes: 4 additions & 5 deletions LanguageFeatures/nnbd/static_errors_A12_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
// 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.

/// @assertion It is an error if a named parameter that is part of a required
/// group is not bound to an argument at a call site
/// @assertion It is an error if a required named parameter is not bound to an
/// argument at a call site.
///
/// @description Check that it is an error if a named parameter that is part of a
/// required group is not bound to an argument at a call site
/// @description Check that it is an error if a required named parameter is not
/// bound to an argument at a call site
/// @author [email protected]


class C {
static void test1({required int x, String y = ""}) {}
void test2({required int x, String y = ""}) {}
Expand Down
9 changes: 4 additions & 5 deletions LanguageFeatures/nnbd/static_errors_A12_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
// 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.

/// @assertion It is an error if a named parameter that is part of a required
/// group is not bound to an argument at a call site
/// @assertion It is an error if a required named parameter is not bound to an
/// argument at a call site.
///
/// @description Check that it is an error if a named parameter that is part of a
/// required group is not bound to an argument at a call site
/// @description Check that it is an error if a required named parameter is not
/// bound to an argument at a call site
/// @author [email protected]


class C {
static void test1({required int x, String y = "", required String z}) {}
void test2({required int x, String y = "", required String z}) {}
Expand Down
Loading