Skip to content

Bug: Versioning not complaining about union of arrays using incomaptible types #3134

@timotheeguerin

Description

@timotheeguerin

If referencing a type via a union of array that is not available in the version it doesn't complain and we endup with some never types

model Widget {
  // uncomment to fix
  // @added(Versions.v2)
  content: string | Bar[];
}

@added(Versions.v2)
model Bar {}

Playground Link

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions