File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
working/augmentation-libraries Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 11# Augmentations
22
33Author: rnystrom@google.com , jakemac@google.com , lrn@google.com <br >
4- Version: 1.26 (see [ Changelog] ( #Changelog ) at end)
4+ Version: 1.27 (see [ Changelog] ( #Changelog ) at end)
55
66Augmentations allow spreading your implementation across multiple locations,
77both within a single file and across multiple files. They can add new top-level
@@ -936,6 +936,11 @@ conversions that sidestep the constructor.)*
936936other types in which case the extension type syntax will then be understood by
937937users to be a primary constructor for the extension type.*
938938
939+ The extension type's representation object is _ not_ a variable, even though it
940+ looks and behaves much like one, and it cannot be augmented as such. It is a
941+ compile time error to have any augmenting declaration with the same name as the
942+ representation object.
943+
939944[ primary constructors] :
940945https://github.com/dart-lang/language/blob/main/working/2364%20-%20primary%20constructors/feature-specification.md
941946
@@ -1347,6 +1352,10 @@ to the augmentation.
13471352
13481353## Changelog
13491354
1355+ ### 1.27
1356+
1357+ * Specify that representation objects for extension types cannot be augmented.
1358+
13501359### 1.26
13511360
13521361* Recreate the change made in 1.23 (which was undone by accident).
You can’t perform that action at this time.
0 commit comments