eugenkiss / kotlinfx

UNMAINTAINED: A layer on top of JavaFX to make better use of Kotlin's features.
MIT License
52 stars 8 forks source link

Type mismatch with Kotlin plugin:0.12.213 #13

Open hhhxxjj opened 9 years ago

hhhxxjj commented 9 years ago

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 commented 8 years ago

You need to change it to toMutableList().

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