Landry Norris
01/27/2023, 4:02 PMLandry Norris
01/27/2023, 4:04 PMexpect class Foo: CStructVar {
val x: Int
val y: Double
...
}
and have
actual typealias Foo = cinterop.Foo
and
actual typealias Foo = cinterop.Foo_
in the platforms. This should work because the struct members all have the same name/type.Landry Norris
01/27/2023, 4:05 PMjw
01/27/2023, 4:06 PMjw
01/27/2023, 4:06 PMjw
01/27/2023, 4:08 PM@Suppress(
"ACTUAL_TYPE_ALIAS_NOT_TO_CLASS", // ArrayList itself aliases to j.u.ArrayList on JVM.
"ACTUAL_WITHOUT_EXPECT", // <https://youtrack.jetbrains.com/issue/KT-37316>
)
internal actual typealias PlatformList<E> = ArrayList<E>
Landry Norris
01/27/2023, 4:08 PMjw
01/27/2023, 4:09 PMLandry Norris
01/27/2023, 4:10 PMLandry Norris
01/27/2023, 4:12 PMLandry Norris
01/27/2023, 4:13 PMLandry Norris
01/27/2023, 6:28 PM