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()