Files
kotlin-fork/idea/testData/resolve/references/InVaragReferenceInNamedParameter.kt
T
Tianyu Geng 17617ffd3f 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`.
2021-03-02 12:46:55 +01:00

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