[FIR] Add constructor for java annotations

This commit is contained in:
Dmitriy Novozhilov
2020-07-22 16:07:43 +03:00
committed by Mikhail Glukhikh
parent 644e9843f9
commit bc1fa8ed7f
14 changed files with 96 additions and 19 deletions
@@ -3,4 +3,4 @@ import java.util.ArrayList
@ArrayList<Int>(1, 1) fun b() {}
@<!UNRESOLVED_REFERENCE!>Xoo<!>(<!UNRESOLVED_REFERENCE!>x<!>) fun c() {}
@java.lang.Deprecated(<!UNRESOLVED_REFERENCE!>x<!>) fun a() {}
@java.lang.Deprecated(x) fun a() {}
@@ -12,8 +12,8 @@ public @interface B {
}
// FILE: c.kt
@A(arg = String::class, b = <!UNRESOLVED_REFERENCE!>B<!>(y = 1)) class MyClass1
@A(arg = String::class, b = B(y = 1)) class MyClass1
@A(b = <!UNRESOLVED_REFERENCE!>B<!>(y = 3)) class MyClass2
@A(b = B(y = 3)) class MyClass2
@A(arg = String::class, b = <!UNRESOLVED_REFERENCE!>B<!>(arg = Boolean::class)) class MyClass3
@A(arg = String::class, b = <!INAPPLICABLE_CANDIDATE!>B<!>(arg = Boolean::class)) class MyClass3