Files
Ilya Kirillov 8ad5a48b98 [Analysis API] introduce KtDestructuringDeclarationSymbol to represent a destructuring declaration
Mainly needed to avoid "Cannot build symbol for KtDestructuringDeclaration" from `KtSymbolProvider.getSymbol` on `KtDestructuringDeclaration`.
2023-08-17 13:01:02 +00:00

16 lines
318 B
Kotlin
Vendored

// LOOK_UP_FOR_ELEMENT_OF_TYPE: KtDestructuringDeclaration
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
data class X(val a: Int, val b: Int)
fun main(x: X) {
<expr>
@AAA("y")
val (@BBB("aaa") a, @BBB("bbb") b) = x
</expr>
}
annotation class AAA(val value: String)
annotation class BBB(val value: String)