Skip to content

Fix type inferencing and syntax highlighting for ternary expression with closure expressions #1120

@eric-milles

Description

@eric-milles

Consider the following:

def value = flag ? { -> optionValue(cli, name) } : { -> cli.defaultValue(name) }

Type inferencing fails with an error once inside the closure expression.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions