diff --git a/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/fir/ValueParameter.kt b/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/fir/ValueParameter.kt index 031eba0172b..fad51108fcd 100644 --- a/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/fir/ValueParameter.kt +++ b/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/fir/ValueParameter.kt @@ -85,7 +85,9 @@ class ValueParameter( modifiers.getVisibility() ) else null }.apply { - this.isFromVararg = firValueParameter.isVararg + if (firValueParameter.isVararg) { + this.isFromVararg = true + } } } } diff --git a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt index 2b9a2e5556d..cdb796dca85 100644 --- a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt +++ b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt @@ -463,7 +463,9 @@ open class RawFirBuilder( dispatchReceiverType = currentDispatchReceiverType() }.apply { - isFromVararg = firParameter.isVararg + if (firParameter.isVararg) { + isFromVararg = true + } } }