From 00ccea220ebc1aada7f3119662c680a0c0df7b4a Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Thu, 25 Apr 2019 14:31:42 +0300 Subject: [PATCH] Raw FIR: allow implicit type of value parameter (helpful for lambda) --- .../src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt b/compiler/fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt index 822a7e2182c..dc10d467331 100644 --- a/compiler/fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt +++ b/compiler/fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt @@ -246,7 +246,7 @@ class RawFirBuilder(val session: FirSession, val stubMode: Boolean) { when { typeReference != null -> typeReference.toFirOrErrorType() defaultTypeRef != null -> defaultTypeRef - else -> null.toFirOrErrorType() + else -> null.toFirOrImplicitType() }, if (hasDefaultValue()) { { defaultValue }.toFirExpression("Should have default value")