Raw FIR: allow implicit type of value parameter (helpful for lambda)

This commit is contained in:
Simon Ogorodnik
2019-04-25 14:31:42 +03:00
committed by Mikhail Glukhikh
parent 9169071d60
commit 00ccea220e
@@ -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")