Skip to content

Commit c22ac5b

Browse files
committed
[records] Clarify some details around the "Record" type.
Fix #2442.
1 parent 25409af commit c22ac5b

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

working/0546-patterns/records-feature-specification.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,13 @@ These primitive types are added to `dart:core`:
9292

9393
### The `Record` class
9494

95-
A built-in class `Record` with no instance members except those inherited
96-
from `Object`, and which exposes no constructors.
97-
All record types are a subtype of this class. This type cannot be constructed,
98-
extended, mixed in, or implemented by user-defined classes.
99-
*This is similar to how the `Function` class is the superclass
100-
for all function types.*
95+
The type `Record` refers to a built-in class defined in `dart:core`. It has no
96+
instance members except those inherited from `Object` and exposes no
97+
constructors. It can't be constructed, extended, mixed in, or implemented by
98+
user-defined classes.
99+
100+
All record types are a subtype of this class. *This is similar to how the
101+
`Function` class is the superclass for all function types.*
101102

102103
## Syntax
103104

@@ -564,6 +565,10 @@ covariant in their field types.
564565

565566
## CHANGELOG
566567

568+
### 1.7
569+
570+
- Clarify what kind of type `Record` is and where it's defined (#2442).
571+
567572
### 1.6
568573

569574
- Support constant records (#2337).

0 commit comments

Comments
 (0)