Skip to content

Self reference for wrap-only type can be nillable #418

@joente

Description

@joente

Problem
Within a wrap-only type, a self reference is possible. We allow this with nested properties as well.

Solution
I would like the following code to work:

set_type('W', {
  w: 'W',
}, true);

Describe alternatives you've considered
Leave the code as-is.

Additional context
We must prevent wrap-only type with non-nillable self-references to be converted to none-wrap-only type.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions