Kelvin Chung
08/07/2025, 5:22 PMactual
to meet an expect
declaration - for example:
expect class MyClass(value: Int) // common
@JvmInline
actual value class MyClass actual constructor(val value: Int) // jvm
Any high-level insight as to why that would be is appreciated.loke
08/07/2025, 5:24 PMKelvin Chung
08/07/2025, 5:25 PMvalue
makes it incompatible.loke
08/07/2025, 5:25 PMexpect value class ...
Kelvin Chung
08/07/2025, 5:26 PMloke
08/07/2025, 5:26 PMloke
08/07/2025, 5:27 PMexpect value class Foo(val instance: Any)
and then the value class can just be a wrapper around the real one.loke
08/07/2025, 5:28 PMKelvin Chung
08/07/2025, 5:28 PMloke
08/07/2025, 5:29 PM