Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationsWithJavaLangClassParameterOverload/argWithDefaultAndOther.kt
T
Denis Zharkov 8f0e290dec Create additional constructor for java annotation with Class-parameter
One of them with KClass<*> parameters and other with java.lang.Class<*>.

It's needed just for backward compatibility, and second one is deprecared.
2015-04-16 10:40:20 +03:00

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