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
This code produces an error but we should be able to infer T in this case.
package p
typeI[Tany] interface {
m(T)
}
funcf5[Tany](I[T]) {}
func_() {
varxinterface {
m(int)
n()
}
f5(x/* ERROR "type interface{m(int); n()} of x does not match inferred type I[int] for I[T]" */)
f5[int](x) // ok
}
Not a release blocker as it doesn't work either in Go 1.20. But should fix if not too hard.
This code produces an error but we should be able to infer T in this case.
Not a release blocker as it doesn't work either in Go 1.20. But should fix if not too hard.
cc: @findleyr
The text was updated successfully, but these errors were encountered: