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 {