Minor, rename codegen tests on platformName and platformStatic

This commit is contained in:
Alexander Udalov
2015-10-23 16:02:27 +03:00
parent 18f3eb87e4
commit ae4c7b5a61
35 changed files with 196 additions and 196 deletions
@@ -0,0 +1,27 @@
import kotlin.jvm.JvmStatic
@Retention(AnnotationRetention.RUNTIME)
annotation class testAnnotation
class A {
companion object {
val b: String = "OK"
@JvmStatic @testAnnotation fun test1() = b
}
}
object B {
val b: String = "OK"
@JvmStatic @testAnnotation fun test1() = b
}
fun box(): String {
if (Test.test1() != "OK") return "fail 1"
if (Test.test2() != "OK") return "fail 2"
return "OK"
}