We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
type Demo struct{} func UseFunc[T any]() {} var value = new(Demo) UseFunc[value.(type)]()
build error: invalid AST: use of .(type) outside type switch.
Hope to support value.(type) in generics code.