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
I expect the compiler to infer that A and B have the same underlying type.
This expectation comes from being able to pass an A{}, and a map[string]int{} and having the underlying type correctly inferred, and from being able to specify the underlying type manually to overcome the failed inference.
What did you see instead?
I get a compile error type B of B{} does not match inferred type A for M