Skip to content

Allow the specification of a local lambda argument with local type arguments #197

Description

There seem to be a bug in TypeRefLocalityAttributeChecker that causes an error whenever a function type is specified as local along with its argument types:

fun `local lambda with local arguments is allowed`(f: @Borrowed (<!INVALID_LOCALITY_TYPE_TARGET!>@Borrowed Any<!>) -> Unit) {
    // ...
}

If @Borrowed is only put on the type argument or on the function type this error does not occur

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions