Skip to content

Commit 468fe2b

Browse files
authored
[Records] Fix typo. It's an error to have named field hashCode, etc.. (#2508)
1 parent cea8003 commit 468fe2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accepted/future-releases/records/records-feature-specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ It is a compile-time error if a record type has any of:
210210
this is symmetric with record expressions and leaves the potential for
211211
later support for parentheses for grouping in type expressions.*
212212

213-
* A positional field named `hashCode`, `runtimeType`, `noSuchMethod`, or
213+
* A named field named `hashCode`, `runtimeType`, `noSuchMethod`, or
214214
`toString`.
215215

216216
* A field name that collides with the synthesized getter name of a positional

0 commit comments

Comments
 (0)