Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type parameters other parameters depend on are incorrectly removed #383

Open
trilis opened this issue Aug 25, 2020 · 0 comments · May be fixed by #384
Open

Type parameters other parameters depend on are incorrectly removed #383

trilis opened this issue Aug 25, 2020 · 0 comments · May be fixed by #384
Assignees
Labels
compilation-failure kotlin code is generated but this code fails to be compiled descriptor-related
Milestone

Comments

@trilis
Copy link
Contributor

trilis commented Aug 25, 2020

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

@trilis trilis added compilation-failure kotlin code is generated but this code fails to be compiled descriptor-related labels Aug 25, 2020
@trilis trilis self-assigned this Aug 25, 2020
@Schahen Schahen added this to the 0.5.8 milestone Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compilation-failure kotlin code is generated but this code fails to be compiled descriptor-related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants