Skip to content

Dotty 0.20.0-RC1: Cannot write a given alias for a function #7515

Closed
@j-mie6

Description

@j-mie6

minimized code

given (Int => Int) = identity[Int]

Produces three errors:
end of statement expected but '(' found
';' expected, but identifier found
anonymous instance must implement a type or have at least one extension method

expectation

The code above should work, just like the below does:

type IntFunc = Int => Int
given IntFunc = identity[Int]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions