Skip to content

Commit af82971

Browse files
authored
Clarify that an extension type _can_ have members which are external instance variables (#3303)
1 parent 6091eef commit af82971

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

accepted/future-releases/extension-types/feature-specification.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,10 @@ disambiguate the extension type declaration with a fixed lookahead.*
429429
Some errors can be detected immediately from the syntax:
430430

431431
A compile-time error occurs if the extension type declaration declares any
432-
instance variables.
432+
instance variables, unless they are `external`.
433+
434+
*An external instance variable is just a convenient notation for an external
435+
getter and (if not `final`) an external setter. They are allowed.*
433436

434437
The _name of the representation_ in an extension type declaration with a
435438
representation declaration of the form `(T id)` is the identifier `id`, and

0 commit comments

Comments
 (0)