mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
rename platformStatic to jvmStatic
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import kotlin.platform.platformStatic
|
||||
import kotlin.jvm.jvmStatic
|
||||
|
||||
class A {
|
||||
|
||||
companion object {
|
||||
val b: String = "OK"
|
||||
|
||||
platformStatic val c: String = "OK"
|
||||
jvmStatic val c: String = "OK"
|
||||
|
||||
platformStatic fun test1() = b
|
||||
jvmStatic fun test1() = b
|
||||
|
||||
platformStatic fun test2() = b
|
||||
jvmStatic fun test2() = b
|
||||
|
||||
platformStatic fun String.test3() = this + b
|
||||
jvmStatic fun String.test3() = this + b
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user