JS property accessors inlining (KT-13456)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user