I get strange compiler errors after upgrading to K...
# k2-adopters
j
I get strange compiler errors after upgrading to Kotlin 2.0.0-beta1: They are related to expect/actual of classes. Is there anything I should know? I get this message: e: file///home/johannes/projects/com.cedarsoft.monorepo/internal/open/commons/i18n/src/commonMain/kotlin/it/neckar/open/formatting/DateTimeFormat.kt92:8 Class 'DateTimeFormatIso8601' is not abstract and does not implement abstract member 'format'. DateTimeFormatIso8601 is an "expect class". The "format" method is declared in the interface.
d
cc @bobko
p
I've faced with the same case. As i understand now all members of expect class must be explicetly declared in it. expect override fun ...
b
It's this issue: https://youtrack.jetbrains.com/issue/KT-59739 Yes, in K2, it's required to override abstract members explicitly on expect side
j
Yeah, thanks! Would be great to have some syntax highlighting some time in the future 😉