1 2 3 4 5 6 7 8 9 10 11 12 13
def test() raises IOError, Error raise new IOError.FAILED( "failed" ) init a:int = 0 try a++ test() except e:Error a++ finally a++ assert( a == 3 )