Support platformStatic for properties
#KT-5766 Fixed
This commit is contained in:
@@ -4,6 +4,8 @@ object A {
|
||||
|
||||
val b: String = "OK"
|
||||
|
||||
platformStatic val c: String = "OK"
|
||||
|
||||
platformStatic fun test1() : String {
|
||||
return b
|
||||
}
|
||||
@@ -36,5 +38,7 @@ fun box(): String {
|
||||
|
||||
if (with(A) {"1".test5()} != "1OK") return "fail 5"
|
||||
|
||||
if (A.c != "OK") return "fail 6"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user