jw
09/03/2021, 2:15 AMrusshwolf
09/03/2021, 2:49 AMexpect class Foo { ... }
intermediateMain
actual typealias Foo = Bar
expect class Bar { ... }
platformMain
actual class Bar { ... }
jw
09/03/2021, 3:02 AMBar
from public API I would love itSebastian Sellmair [JB]
09/03/2021, 7:57 AMjw
09/03/2021, 11:25 AMSebastian Sellmair [JB]
09/03/2021, 12:16 PMrusshwolf
09/03/2021, 3:08 PMBar
out of public API.
@RequiresOptIn
annotation class InternalApi
@OptIn(InternalApi::class)
actual typealias Foo = Bar
@InternalApi
expect class Bar
But it might not be viable for you because then the new members of Bar
are also not public API.louiscad
09/03/2021, 3:10 PMjw
09/03/2021, 3:13 PMrusshwolf
09/03/2021, 3:15 PM