Move Intrinsic annotation to javaClass property from its getter
This is needed because the property, not its getter, is used as a key to the intrinsics map when codegen decides how to generate a method call. Earlier it worked because annotations on getters of properties loaded from bytecode were mistakenly added to annotations on properties themselves
This commit is contained in:
@@ -5,8 +5,8 @@ import java.lang.Object
|
|||||||
|
|
||||||
import jet.runtime.Intrinsic
|
import jet.runtime.Intrinsic
|
||||||
|
|
||||||
public val <T> T.javaClass : Class<T>
|
[Intrinsic("kotlin.javaClass.property")] public val <T> T.javaClass : Class<T>
|
||||||
[Intrinsic("kotlin.javaClass.property")] get() = (this as java.lang.Object).getClass() as Class<T>
|
get() = (this as java.lang.Object).getClass() as Class<T>
|
||||||
|
|
||||||
[Intrinsic("kotlin.javaClass.function")] fun <T> javaClass() : Class<T> = null as Class<T>
|
[Intrinsic("kotlin.javaClass.function")] fun <T> javaClass() : Class<T> = null as Class<T>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user