BOO-996, BOO-995: Added "then" keyword to replace "else" semantic in looping construc...
[boo.git] / tests / testcases / integration / statements / filter-3.boo
blobdb87633124ba40f74138bf8f41510d49d8f98e42
1 """
2 Good
3 System.Exception: This is the message
4 """
6 def RetVal(ref catch as bool):
7 catch = not catch
8 return not catch
10 catch = false
12 try:
13 raise System.Exception("This is the message")
14 except ex as System.Exception if RetVal(catch):
15 print "What?"
16 print ex.GetType() + ": " + ex.Message
17 except ex as System.Exception unless RetVal(catch):
18 print "Still Bad..."
19 print ex.GetType() + ": " + ex.Message
20 except ex as System.Exception unless RetVal(catch):
21 print "Good"
22 print ex.GetType() + ": " + ex.Message
23 except ex as System.Exception:
24 print "NO!"
25 print ex.GetType() + ": " + ex.Message