Hi
Can you help me?
I have this code in common
expect class ContextRef
then I try implement this code for linux_x64:
actual typealias ContextRef = LLVMContextRef
in this case i got error because
LLVMContextRef
is alias:
public typealias LLVMContextRef = kotlinx.cinterop.CPointer<cnames.structs.LLVMOpaqueContext>
okey, it is fine, I forgot about that thing. I try to change my code to
actual typealias ContextRef = kotlinx.cinterop.CPointer<cnames.structs.LLVMOpaqueContext>
And i got suddenly error:
Type arguments in the right-hand side of actual type alias should be its type parameters in the same order, e.g. 'actual typealias Foo<A, B> = Bar<A, B>'
Why it happend? Why it work fine without
expect
and
actual
? How I can fix it?