Skip to content

Validation error: Union types must only be used as parameter types #675

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

The main use-case for union types is to describe the type of parameters of external declarations. For now, the effort to allow working with values that have a union type inside the DSL does not seem worth it.

Desired solution

Allow them only as the type of

  • parameters of annotations,
  • parameters of classes,
  • parameters of functions.

Since parameters of enum variants can be accessed as members, we must omit them.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

Metadata

Metadata

Assignees

Labels

releasedIncluded in a release

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions