fun main() {
while (working()) {
HEALTH -= 1
}
}
var HEALTH = 365
fun working(): Boolean {
if (HEALTH > 0) {
return true
} else {
throw OutOfMemoryError("์ฌ๋ฉด์ ์ผ์ ํด๋ณด๋๊ฑด ์ด๋์?")
}
}
@Transactional(noRollbackFor = [IrreversibleAction::class])
fun life() { /* compiled code */ }
class IrreversibleAction: RuntimeException()