BOO-996, BOO-995: Added "then" keyword to replace "else" semantic in looping construc...
[boo.git] / tests / testcases / integration / statements / while-3.boo
blob11d30f25f744c2186fe07ad915bb7631f0898b12
1 """
5 """
6 import System
8 class Foo(object):
9 pass
11 class Bar(Foo):
12 pass
14 def classDepth(type as Type):
16 value = 1
17 while type is not object:
18 ++value
19 type = type.BaseType
21 return value
23 print(classDepth(Foo))
24 print(classDepth(Bar))
25 print(classDepth(object))