Initial implementation of platformStatic

This commit is contained in:
Michael Bogdanov
2014-09-01 15:12:31 +04:00
parent 7bbedd9685
commit e26d635633
36 changed files with 718 additions and 47 deletions
@@ -0,0 +1,36 @@
package test
class A {
class object {
val b: String = "OK"
platformStatic fun test1() {
b
test2()
test3()
"".test4()
}
platformStatic fun test2() {
b
}
fun test3() {
}
platformStatic fun String.test4() {
b
}
}
}
fun main(args: Array<String>) {
A.test1()
A.test2()
A.test3()
with(A) {
A.test1()
}
}