1 2 3 4 5 6 7 8
class MyException(msg: Str): Exception(msg) def g() -> Int raise [MyException] => raise MyException("A") def f(x: Int) -> Int=> g() handle err: Exception => x + 10