Skip to content

type parameters on the LHS of = #1329

@gavinking

Description

@gavinking

Currently we don't let you write:

T fun<T>(T x);
fun<T>(T x) => x;

Nor do we let you use the shortcut refinement syntax for generic methods.

I think this is a limitation that should be removed, assuming it's not impossible to parse.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions