Got rid of an unecessary explicit cast.

This commit is contained in:
Alexander Gorshenev
2019-01-15 14:26:05 +03:00
committed by alexander-gorshenev
parent 606c622e61
commit 2775153c1a
@@ -354,8 +354,9 @@ fun Scope.createTemporaryVariableWithWrappedDescriptor(
nameHint: String? = null,
isMutable: Boolean = false,
origin: IrDeclarationOrigin = IrDeclarationOrigin.IR_TEMPORARY_VARIABLE): IrVariable {
val descriptor = WrappedVariableDescriptor()
return createTemporaryVariableWithGivenDescriptor(
irExpression, nameHint, isMutable, origin, WrappedVariableDescriptor()
).apply { (this.descriptor as WrappedVariableDescriptor).bind(this) }
irExpression, nameHint, isMutable, origin, descriptor
).apply { descriptor.bind(this) }
}