What is the correct way to define this multiplatform common type?
common:
expect class YearMonth: Comparable<YearMonth> {
val year: Int // How should I declare this property?
}
jvm:
// This typealias is a requirement:
actual typealias YearMonth = java.time.YearMonth
The above jvm declaration causes a compile error: The following declaration is incompatible because visibility is different: private final val year: Int defined in java.time.YearMonth