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`.
This commit is contained in:
Tianyu Geng
2021-02-23 14:42:07 -08:00
committed by Ilya Kirillov
parent 87f3ca3f36
commit 17617ffd3f
8 changed files with 96 additions and 13 deletions
@@ -0,0 +1,9 @@
package test
class A
class Test {
fun some(vararg a: A) = <caret>a
}
// REF: a