Skip to content

distinct types with static[T] can't borrow #6026

@cooldome

Description

@cooldome

The following code snippet does not compile, while there is no particular reason not to.

type Amount[date: static[int]] = distinct float

proc `+`[T](x, y: Amount[T]): Amount[T] {. borrow .}

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