AA FIR: handle (aliased)? annotation w/ vararg parameter
This commit is contained in:
committed by
Nikolay Krasko
parent
032153c673
commit
56a5d883c0
+13
@@ -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
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
KtDeclaration: KtNamedFunction bar
|
||||
annotations: [
|
||||
kotlin/jvm/Throws(exceptionClasses = [java.io.IOException::class, MyException::class])
|
||||
psi: KtAnnotationEntry
|
||||
]
|
||||
Vendored
+4
@@ -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
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
KtDeclaration: KtNamedFunction foo
|
||||
annotations: [
|
||||
A(a = 1, cs = [kotlin.Int::class, kotlin.String::class])
|
||||
psi: KtAnnotationEntry
|
||||
]
|
||||
Reference in New Issue
Block a user