Mark
05/19/2025, 11:50 AM// commonMain
expect sealed interface Foo {
fun toUri(): Uri
}
// androidMain
actual sealed interface Foo {
actual fun toUri(): Uri { // error: Actual function 'toUri' has no corresponding expected declaration
TODO()
}
}Csaba Szugyiczki
05/19/2025, 11:55 AMtoUri function, since your Foo sealed interface is what is marked with expectMark
05/19/2025, 11:57 AMDeclaration must be marked with 'actual'Mark
05/19/2025, 12:02 PMMark
05/20/2025, 8:54 AM