2 ms·
> Well, can't the type inference just work the same as it does now, if you happen to use type parameters? I think it can only work with type parameters because
by lmm 12y ago
> Well, can't the type inference just work the same as it does now, if you happen to use type parameters?
I think it can only work with type parameters because they're constrained in what they can do. If type parameters compile down to type members, presumably there is no "marker" that says that that type member obeys those constraints - if there is then it wouldn't really be unification of type members and type parameters.