Skip to content

Validation error: Result has callable type #713

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

This code does not yet produce an error:

fun g() -> (r: () -> ())

However, we only want to allow callables as inputs to functions. We also want to forbid attributes with callable types.

Desired solution

Add validation checks.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

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