You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
typeAstruct{}
typeBstruct{}
varaAvarbBvarcstruct{}
funcmain() {
f(a, b, c) // ERROR "type B of b does not match inferred type A for P"f[struct{}](a, b, c)
}
funcf[Pany](...P) {}
fails to infer the type argument struct{} even though it appears in the function argument list (playground).
This bug existed since Go 1.18.
It partly interferes with a fix for #62157 (we can't fully fix #62157 without addressing this issue as well).