Constructors: let me access instance fields in initializer expressions if they have been set in an initializing formal #4181
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-duplicate
Closed in favor of an existing report
type-enhancement
A request for a change that isn't a bug
This is okay
QrCode(int typeNumber, this.errorCorrectLevel)
: this.typeNumber = typeNumber,
moduleCount = typeNumber * 4 + 17 { ...
This is currently an error, but it'd be great if it worked.
QrCode(this.typeNumber, this.errorCorrectLevel)
: moduleCount = typeNumber * 4 + 17 { ...
A nit, but nice to have.
The text was updated successfully, but these errors were encountered: