Closed
Description
I'm working on the reified
generation for the Kotlin API, and I'm noticing that lots of methods have unnecessary type parameters that makes the reified
usage much less nice (since you have to specify all type parameters if you specify one). The best example is probably cast
, which has the signiture:
<U extends TType, T extends TType> Cast<U> cast(Operand<T> x, Class<U> DstT, Cast.Options... options)
T
is completely unnecessary and could be replaced with ?
without issue, but it prevents cast<TInx32>(x)
usage from Kotlin. This shows up in a number of Ops, mostly with the unnecessary type parameters on the input. It essentially needs a "is this type param only bounded by TType and only used on inputs" check.
Originally posted by @rnett in #174 (comment)
Metadata
Metadata
Assignees
Labels
No labels