Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationsWithJavaLangClassParameterOverload/valueWithDefaultAndOther.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

11 lines
226 B
Kotlin

// FILE: A.java
public @interface A {
Class<?> value() default Integer.class;
int x();
}
// FILE: b.kt
A(javaClass<String>(), x = 1) class MyClass1
A(value = javaClass<String>(), x = 3) class MyClass2
A(x = 5) class MyClass3