Skip to content

Further investigate handling of type aliases by locality and uniqueness checkers #182

@paganma

Description

Consider the following test:

class A

typealias B = A

fun share(x: B) {}

fun test(x: @Borrowed A) { share(x) }

In this case the locality checker correctly detects the locality mismatch in test. Make sure that there aren't any corner cases that we may be missing in relation to type aliases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions