Files
kotlin-fork/idea/testData/resolve/references/InVaragReferenceInFunctionBody.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

10 lines
86 B
Kotlin
Vendored

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