diff --git a/compiler/testData/ir/interpreter/helpers/Standard.kt b/compiler/testData/ir/interpreter/helpers/Standard.kt index 2912dac6677..b6848f099b1 100644 --- a/compiler/testData/ir/interpreter/helpers/Standard.kt +++ b/compiler/testData/ir/interpreter/helpers/Standard.kt @@ -41,3 +41,5 @@ public inline fun repeat(times: Int, action: (Int) -> Unit) { action(index) } } + +public inline fun error(message: Any): Nothing = throw IllegalStateException(message.toString())