Skip to content

Validation error: Constant parameter has invalid type #668

@lars-reimann

Description

@lars-reimann

Arguments passed to constant parameters (i.e. parameters of annotations or parameter explicitly marked with const) must evaluate to some constant. We can only do this for specific types, however. Thus, at the declaration-site, we should already show an error if a constant parameter has a type, that is not supported by the partial evaluator.

Metadata

Metadata

Assignees

Labels

releasedIncluded in a releasevalidation ✔️Improved or new static checks

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions