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:
committed by
Ilya Kirillov
parent
87f3ca3f36
commit
17617ffd3f
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
class A
|
||||
|
||||
class Test {
|
||||
fun some(vararg a: A) = <caret>a
|
||||
}
|
||||
|
||||
// REF: a
|
||||
Reference in New Issue
Block a user