Skip to content

value-of<MyEnum> does not work when used as template param in use statement #9145

@boesing

Description

@boesing

Hey there,

I wanted to implement a trait which provides a values method to BackedEnum implementations without our project.

https://psalm.dev/r/86d5f5d471

But sadly, it is not possible to provide value-of<self> within a use annotation.
Am I missing something or is that a bug?
If the latter, having a point to start would be awesome and I might find some time to fix it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions