Got rid of an unecessary explicit cast.
This commit is contained in:
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) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user