JS property accessors inlining (KT-13456)

This commit is contained in:
Anton Bannykh
2016-10-28 16:28:21 +03:00
parent 56ef09c09c
commit 0dc9121a91
24 changed files with 719 additions and 28 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
// WITH_RUNTIME
// WITH_REFLECT
// FILE: 1.kt
package test
inline val <reified T: Any> T.value: String
get() = T::class.java.simpleName
get() = T::class.simpleName!!
// FILE: 2.kt
import test.*
@@ -11,5 +12,5 @@ import test.*
class OK
fun box(): String {
return OK().value
return OK().value ?: "fail"
}