10 lines
285 B
Kotlin
Vendored
10 lines
285 B
Kotlin
Vendored
// FUNCTION: dbg
|
|
|
|
fun box() = expectThrowableMessage {
|
|
val operation = "sum"
|
|
dbg(operation, 1 + 2 + 3, "Message:")
|
|
}
|
|
|
|
fun <T> dbg(key: Any, value: T): T = value
|
|
fun <T> dbg(key: Any, value: T, msg: String): T = throw RuntimeException(key.toString() + "=" + value + "\n" + msg)
|