Add error() function to interpreter test helper sources
To compile standard library code that uses error()
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user