Skip to content

kind checker does not recognize implicit returns #1390

Closed
@marijnh

Description

@marijnh

This shouldn't compile without annotating the parameter as copy kind, but it does:

 fn id<T>(x: T) -> T { x }

If you return by ret, the problem is detected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions