You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: working/wildcards/feature-specification.md
+4-11Lines changed: 4 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Author: Bob Nystrom
4
4
5
5
Status: In-progress
6
6
7
-
Version 1.5
7
+
Version 1.6
8
8
9
9
## Motivation
10
10
@@ -357,16 +357,6 @@ class B extends A {
357
357
}
358
358
```
359
359
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
-
370
360
### Extension types
371
361
372
362
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
479
469
480
470
## Changelog
481
471
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)
0 commit comments