For some reason doing `memScoped { alloc<BooleanVa...
# kotlin-native
m
For some reason doing
memScoped { alloc<BooleanVar>() }
gives the following error:
Copy code
Compilation failed: Internal compiler error: native variable class deserialized class CPrimitiveVar must have the companion object
at /home/mart/git/experiments/martmists-engine/src/linuxMain/kotlin/com/mewsic/engine/core/linux/dbus.kt (232:272)
CALL 'public final fun typeOf <T> (): kotlinx.cinterop.CVariable.Type declared in kotlinx.cinterop' type=kotlinx.cinterop.CVariable.Type origin=null
and the same happens with DoubleVar, though IntVar seems to be fine. How would I solve this?