We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5311b0b commit 42d9919Copy full SHA for 42d9919
working/0546-patterns/records-feature-specification.md
@@ -203,7 +203,10 @@ The type `()` is the type of an empty record with no fields.
203
204
It is a compile-time error if a record type has any of:
205
206
-* The same field name more than once.
+* The same field name more than once. *This is true even if one or both of the
207
+ colliding fields is positional. We could permit collisions with positional
208
+ field names since they are only used for documentation, but we disallow it
209
+ because it's confusing and not useful.*
210
211
* Only one positional field and no trailing comma. *This isn't ambiguous,
212
since there are no parenthesized type expressions in Dart. But prohibiting
0 commit comments