Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions working/augmentations/feature-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,9 @@ It's a **compile-time** error if:
For purposes of augmentation, a variable declaration is treated as implicitly
defining a getter whose return type is the type of the variable. If the variable
is not `final`, or is `late` without an initializer, then the variable
declaration also implicitly defines a setter with a parameter named `_` whose
type is the type of the variable.
declaration also implicitly defines a setter with a single required positional
parameter whose type is the type of the variable. The variable declaration does
not determine the name of that parameter.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you may have been OOO at the time, but the ability to use a parameter declaration whose name is specified as _ to mean "I don't care" was reintroduced with #4669 and #4670. It should not be necessary to introduce the notion of "does not determine the name" for a parameter declaration.

I don't think it actually creates any problems with the specification to rely on "does not determine the name", but it seems simpler to rely on the ability of _ to do the same thing, now that this feature has been restored.


If the variable is `abstract`, then the getter and setter are incomplete,
otherwise they are complete. *For non-abstract variables, the compiler
Expand Down