BOO-996, BOO-995: Added "then" keyword to replace "else" semantic in looping construc...
[boo.git] / tests / testcases / ducky / implicit-2.boo
blob48d1cf13e86a47a8021770b977ffee00b079248b
1 """
2 a love supreme
3 """
4 class Song:
5 static def op_Implicit(song as Song) as string:
6 return song.Name
8 [property(Name)]
9 _name = ""
11 class Person:
12 [property(Favorite)]
13 _favorite as Song
15 p as duck = Person(Favorite: Song(Name: "a love supreme"))
16 s as string = p.Favorite
17 print s