Skip to content

Commit ef8da45

Browse files
kallentulrhn
authored andcommitted
[wildcard-variables] Remove unnamed optional wildcards with no default. (#3938)
1 parent 451b944 commit ef8da45

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

working/wildcards/feature-specification.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Author: Bob Nystrom
44

55
Status: In-progress
66

7-
Version 1.5
7+
Version 1.6
88

99
## Motivation
1010

@@ -357,16 +357,6 @@ class B extends A {
357357
}
358358
```
359359

360-
### Unnamed optional parameters
361-
362-
```dart
363-
int foo([int _]) => 3; // OK.
364-
```
365-
366-
An optional unnamed parameter, that's not an initializing or super parameter,
367-
is allowed to have no default value, even if its type is non-nullable. We
368-
will stop producing a compile time error for this case.
369-
370360
### Extension types
371361

372362
An extension type declaration has a `<representationDeclaration>`
@@ -479,6 +469,9 @@ This lint is included in the core lint set which means that the scale of the bre
479469

480470
## Changelog
481471

472+
### 1.6
473+
- Added and removed allowing unnamed optional wildcard parameters to have no default value, even if they are non-nullable. Discussion: [language/#3807](https://github.com/dart-lang/language/issues/3807)
474+
482475
### 1.5
483476
- Allow `super._`. Discussion: [language/#3792](https://github.com/dart-lang/language/issues/3792)
484477

0 commit comments

Comments
 (0)