Trying to compile code that works in jvm. Got next...
# ios
k
Trying to compile code that works in jvm. Got next error: https://pastebin.com/MpP8g6aa
I wasn;t able to spot any java imports or similar things in code. could it be related to objects or lateinit?
Exception line is: exception: java.lang.ClassCastException: org.jetbrains.kotlin.ir.declarations.impl.IrVariableImpl cannot be cast to org.jetbrains.kotlin.ir.expressions.IrExpression
g
Could you show full stacktrace. Looks like just a ClassCastException
Maybe you have some code snippet where you can reproduce this problem
k
It is full stacktrace in pastebin.
Can't reproduce it with smaller example.. as I don't know what is causing that...
o
would be interesting to see the source code that trigger such behavior. Also
--disable build_dfg
may help
k
I added more lofs to pastebin link.
@olonho, where should i put that argument? doesn't look like gradle
k
adding --disable build_dfg didn't change anything
I'll try to rewrite code into different form, to see if it will change anything.
o
could you please provide us with the source code that triggers such behavior?
k
Source code have >100 files. I'll try to make smaller example.
As side note: we are using kotlin-native 0.6.2 and upgrade to 0.7 complains about org/gradle/language/cpp/internal/NativeVariant. But i was able to upgrade script to 0.8-dev-2179. After that it is able to compile code.
o
yes, Gradle 4.7 is required