From bc2b96f6344729f632229647d99561bafdaa7822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=20Sch=C3=A4fer?= Date: Thu, 17 Oct 2019 16:56:58 +0200 Subject: [PATCH] IR: Fix return types in IrConstImpl --- .../kotlin/ir/expressions/impl/IrConstImpl.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/impl/IrConstImpl.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/impl/IrConstImpl.kt index 6870ca8c847..1408588e181 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/impl/IrConstImpl.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/impl/IrConstImpl.kt @@ -57,22 +57,22 @@ class IrConstImpl( fun constFalse(startOffset: Int, endOffset: Int, type: IrType): IrConstImpl = boolean(startOffset, endOffset, type, false) - fun long(startOffset: Int, endOffset: Int, type: IrType, value: Long): IrExpression = + fun long(startOffset: Int, endOffset: Int, type: IrType, value: Long): IrConstImpl = IrConstImpl(startOffset, endOffset, type, IrConstKind.Long, value) - fun float(startOffset: Int, endOffset: Int, type: IrType, value: Float): IrExpression = + fun float(startOffset: Int, endOffset: Int, type: IrType, value: Float): IrConstImpl = IrConstImpl(startOffset, endOffset, type, IrConstKind.Float, value) - fun double(startOffset: Int, endOffset: Int, type: IrType, value: Double): IrExpression = + fun double(startOffset: Int, endOffset: Int, type: IrType, value: Double): IrConstImpl = IrConstImpl(startOffset, endOffset, type, IrConstKind.Double, value) - fun char(startOffset: Int, endOffset: Int, type: IrType, value: Char): IrExpression = + fun char(startOffset: Int, endOffset: Int, type: IrType, value: Char): IrConstImpl = IrConstImpl(startOffset, endOffset, type, IrConstKind.Char, value) - fun byte(startOffset: Int, endOffset: Int, type: IrType, value: Byte): IrExpression = + fun byte(startOffset: Int, endOffset: Int, type: IrType, value: Byte): IrConstImpl = IrConstImpl(startOffset, endOffset, type, IrConstKind.Byte, value) - fun short(startOffset: Int, endOffset: Int, type: IrType, value: Short): IrExpression = + fun short(startOffset: Int, endOffset: Int, type: IrType, value: Short): IrConstImpl = IrConstImpl(startOffset, endOffset, type, IrConstKind.Short, value) fun defaultValueForType(startOffset: Int, endOffset: Int, type: IrType) = when {