mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Delete the old ones in package kotlin.reflect.jvm because otherwise the code using those functions will become red in a lot less meaningful way (overload resolution ambiguity) than if they're deleted (unresolved import) Based on the work originally done by @dnpetrov #KT-8380 Fixed
15 lines
356 B
Kotlin
Vendored
15 lines
356 B
Kotlin
Vendored
class Klass
|
|
|
|
fun foo() {
|
|
val c0 = (Klass::class).java // prevent intrinsic .java for class literal
|
|
val c1 = Klass::class.java
|
|
val c2 = Int::class.java
|
|
val c3 = Integer::class.java
|
|
|
|
}
|
|
|
|
// 2 LDC LKlass;.class
|
|
// 1 GETSTATIC java/lang/Integer.TYPE : Ljava/lang/Class;
|
|
// 1 INVOKESTATIC kotlin/jvm.*\.getJava
|
|
// 1 LDC Ljava/lang/Integer;.class
|