Skip to content

Commit

Permalink
[wildcard-variables] Remove unnamed optional wildcards with no defaul…
Browse files Browse the repository at this point in the history
…t. (#3938)
  • Loading branch information
kallentu authored Jun 27, 2024
1 parent e58531b commit 35d28ff
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions working/wildcards/feature-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Author: Bob Nystrom

Status: In-progress

Version 1.5
Version 1.6

## Motivation

Expand Down Expand Up @@ -357,16 +357,6 @@ class B extends A {
}
```

### Unnamed optional parameters

```dart
int foo([int _]) => 3; // OK.
```

An optional unnamed parameter, that's not an initializing or super parameter,
is allowed to have no default value, even if its type is non-nullable. We
will stop producing a compile time error for this case.

### Extension types

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

## Changelog

### 1.6
- 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)

### 1.5
- Allow `super._`. Discussion: [language/#3792](https://github.com/dart-lang/language/issues/3792)

Expand Down

0 comments on commit 35d28ff

Please sign in to comment.