17617ffd3f
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`.
11 lines
125 B
Kotlin
Vendored
11 lines
125 B
Kotlin
Vendored
package test
|
|
|
|
class A
|
|
|
|
class Test {
|
|
fun some(vararg a: A) {}
|
|
fun call() = some(<caret>a = arrayOf(A()))
|
|
}
|
|
|
|
// REF: a
|