Objects that use generics are not considered different types of parameters?

Is this correct?

So for example,

fun wield(weapon: Weapon<sword>) fun wield(weapon: Waapon<nunchucks>) 

Would you expect to get an error here due to the wield function having the same signature?

This is surprising to me.

submitted by /u/aintnufincleverhere
[link] [comments]