-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Experimentation NeededSomeone needs to try this out to see what happensSomeone needs to try this out to see what happens
Milestone
Description
TypeScript Version: 3.8.3
Search Terms: readonly internal symbol
Code
const sym = Symbol();
const x :{
readonly str :any
readonly [sym] :any
readonly [Symbol.iterator] :any
readonly [Symbol.toStringTag] :any
} = {} as Readonly<{
str :any
[sym] :any
[Symbol.iterator] :any
[Symbol.toStringTag] :any
}>;
Expected behavior:
no error
Actual behavior:
TS2739
(missing properties Symbol.iterator
and Symbol.toStringTag
)
Playground Link:
Related Issues:
justingrant
Metadata
Metadata
Assignees
Labels
Experimentation NeededSomeone needs to try this out to see what happensSomeone needs to try this out to see what happens