Skip to content

Fix type inferencing for @DelegatesTo(type="") that references static inner class #966

@eric-milles

Description

@eric-milles

Consider the following:

void meth(@DelegatesTo(type="java.util.Map.Entry")) {
}
meth { key }

The expression "key" is shown as unknown (underlined) because the static inner class "Entry" cannot be resolved correctly by the type inference engine.

image

Note: This case is required to work when a private static inner class is the delegate type. "value=Outer.Inner.class" will produce a compile error for not-visible inner class.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions