Big Chungus
05/28/2021, 3:42 PMexpect class File(path:String) {
val path: String // <-- Needs to be property on jvm
}
// jvmMain
actual typealias File = java.io.File // <-- hooks in to `private String path` field instead of `public String getPath()` getter
turansky
05/28/2021, 8:54 PMBig Chungus
05/29/2021, 2:45 AMBig Chungus
05/29/2021, 2:46 AM@JvmUnoReverse
@JvmField
val property: Any
turansky
05/29/2021, 2:54 AMopen
modifier?turansky
05/29/2021, 2:55 AMget
/`set` ?Big Chungus
05/29/2021, 3:00 AMrusshwolf
05/29/2021, 2:52 PMexpect class File(path: String)
expect val File.path: String
actual typealias File = java.io.File
actual val File.path get() = getPath()
Big Chungus
05/29/2021, 2:52 PMrusshwolf
05/29/2021, 3:27 PMBig Chungus
05/29/2021, 3:48 PM