AA FIR: handle (aliased)? annotation w/ vararg parameter

This commit is contained in:
Jinseong Jeon
2022-08-03 15:01:55 -07:00
committed by Nikolay Krasko
parent 032153c673
commit 56a5d883c0
16 changed files with 142 additions and 33 deletions
@@ -0,0 +1,13 @@
// WITH_STDLIB
import java.io.IOException
typealias Throws = kotlin.jvm.Throws
class MyException : Exception()
class Foo {
@Throws(IOException::class, MyException::class)
fun ba<caret>r(): Boolean {
return false
}
}
@@ -0,0 +1,5 @@
KtDeclaration: KtNamedFunction bar
annotations: [
kotlin/jvm/Throws(exceptionClasses = [java.io.IOException::class, MyException::class])
psi: KtAnnotationEntry
]
@@ -0,0 +1,4 @@
annotation class A(val a: Int, vararg val cs: KClass<*>)
@A(a = 1, Int::class, String::class)
fun fo<caret>o(): Int = 42
@@ -0,0 +1,5 @@
KtDeclaration: KtNamedFunction foo
annotations: [
A(a = 1, cs = [kotlin.Int::class, kotlin.String::class])
psi: KtAnnotationEntry
]