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 mismatch with Kotlin plugin:0.12.213 #13

Open
hhhxxjj opened this issue Jun 5, 2015 · 1 comment
Open

Type mismatch with Kotlin plugin:0.12.213 #13

hhhxxjj opened this issue Jun 5, 2015 · 1 comment

Comments

@hhhxxjj
Copy link

hhhxxjj commented Jun 5, 2015

Thank you for your great work.

I'm compiling GenProperties and get the following Error:

Error:(74, 63) Kotlin: Type mismatch: inferred type is java.util.ArrayList<java.lang.reflect.TypeVariable<java.lang.Class<out java.lang.Object!>!>!> but kotlin.MutableList<java.lang.reflect.TypeVariable<out java.lang.Class?>?> was expected

The relevant lines is as follows:
val tyParamList = clazz.getTypeParameters().toArrayList()
val tyParams = util.genTypeParamsString(tyParamList)
val tyParamsFirst = util.genFirstTypeParamsString(tyParamList)

How to solve this problem?
Thanks again.

@hrj
Copy link

hrj commented Aug 26, 2016

You need to change it to toMutableList().

This and other fixes are available in this branch:
https://github.com/UprootStaging/kotlinfx/tree/newFixes

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