8f0e290dec
One of them with KClass<*> parameters and other with java.lang.Class<*>. It's needed just for backward compatibility, and second one is deprecared.
10 lines
185 B
Kotlin
10 lines
185 B
Kotlin
// FILE: A.java
|
|
public @interface A {
|
|
Class<?> arg() default Integer.class;
|
|
int x();
|
|
}
|
|
|
|
// FILE: b.kt
|
|
A(arg = javaClass<String>(), x = 3) class MyClass1
|
|
A(x = 5) class MyClass2
|