Raw FIR: allow implicit type of value parameter (helpful for lambda)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
9169071d60
commit
00ccea220e
@@ -246,7 +246,7 @@ class RawFirBuilder(val session: FirSession, val stubMode: Boolean) {
|
|||||||
when {
|
when {
|
||||||
typeReference != null -> typeReference.toFirOrErrorType()
|
typeReference != null -> typeReference.toFirOrErrorType()
|
||||||
defaultTypeRef != null -> defaultTypeRef
|
defaultTypeRef != null -> defaultTypeRef
|
||||||
else -> null.toFirOrErrorType()
|
else -> null.toFirOrImplicitType()
|
||||||
},
|
},
|
||||||
if (hasDefaultValue()) {
|
if (hasDefaultValue()) {
|
||||||
{ defaultValue }.toFirExpression("Should have default value")
|
{ defaultValue }.toFirExpression("Should have default value")
|
||||||
|
|||||||
Reference in New Issue
Block a user