Skip to content

Commit 32df04a

Browse files
scheglovcommit-bot@chromium.org
authored andcommitted
Fix nnbd/syntax/required_modifier_error_test
There were compilation errors reported because of missing default values for non-required optional non-nullable parameters. [email protected], [email protected] Change-Id: If0454988219a7fece317c86124a81a2a8ce8bea4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106963 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Dan Rubel <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 639cff0 commit 32df04a

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

tests/language_2/nnbd/syntax/required_modifier_error_test.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@ void f2({
2929
// Out of order modifiers
3030
class C2 {
3131
void m({
32-
covariant
33-
required //# 07: compile-time error
34-
int i2,
35-
final
36-
required //# 08: compile-time error
37-
int i3,
32+
required int i1,
33+
covariant required int i2, //# 07: compile-time error
34+
final required int i3, //# 08: compile-time error
3835
}) {
3936
}
4037
}

0 commit comments

Comments
 (0)