Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
552 stars 44 forks source link

Type parameters other parameters depend on are incorrectly removed #383

Open trilis opened 3 years ago

trilis commented 3 years ago
forEach<T, U extends ArrayLike<T>>(
        obj: U,
        iterator: (value: U[number], key: number, obj: U) => void,
        context?: any
    ): U;

produces

fun <U : ArrayLike<T>> forEach(obj: U, iterator: (value: Any, key: Number, obj: U) -> Unit, context: Any = definedExternally): U

T is gone as we determine it's determine it's redundant because it's not used in parameter types or return types, but other type parameter depends on it, which results in compilation error