Files
Tianyu Geng 05eb38f1b9 IDE FIR: fix resolving vararg parameter type
For a vararg parameter type, there corresponding FIR element has a fake
source of kind ArrayTypeFromVarargParameter. As a result,
`getOrBuildFir` returns the whole `FirValueParameter` for the parameter
type reference. Therefore, we need some special handling for this case
in order to resolve the proper `KtSymbol`.

Original commit: 17617ffd3ffcc06d1596dae0c4b4797b4c90e7cc

GitOrigin-RevId: 808dc907687f22ebb6fb60eacdde1b66244d6d4a
2022-01-22 10:51:06 +00:00

10 lines
94 B
Kotlin

package test
class A
class Test {
fun some(vararg a: <caret>A) = 12
}
// REF: (test).A