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

Dynamic type can not be used as an upper bound #4

Closed
ts2kt opened this issue May 18, 2019 · 1 comment
Closed

Dynamic type can not be used as an upper bound #4

ts2kt opened this issue May 18, 2019 · 1 comment
Milestone

Comments

@ts2kt
Copy link

ts2kt commented May 18, 2019

export declare class SomeClass {
    static foo<T extends {
        target?: any;
    }>(array: T[], classes?: any[]): T[];
}

produce

external open class SomeClass {
    companion object {
        fun <T : dynamic> foo(array: Array<T>, classes: Array<Any>? = definedExternally /* null */): Array<T> = definedExternally
    }         // ^
}             // | Error: Dynamic type can not be used as an upper bound
@Schahen Schahen added the bug label May 21, 2019
@Schahen Schahen added this to the 0.0.4 milestone May 21, 2019
Schahen added a commit that referenced this issue May 22, 2019
This deals with #4 (Dynamic type can not be used as an upper bound)
@Schahen
Copy link
Contributor

Schahen commented May 24, 2019

fixed in @0.0.4

@Schahen Schahen closed this as completed May 24, 2019
Schahen added a commit that referenced this issue Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants