repo.or.cz
/
boo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
BOO-996, BOO-995: Added "then" keyword to replace "else" semantic in looping construc...
[boo.git]
/
tests
/
testcases
/
ducky
/
implicit-2.boo
blob
48d1cf13e86a47a8021770b977ffee00b079248b
1
"""
2
a love supreme
3
"""
4
class
Song
:
5
static def
op_Implicit
(
song
as
Song
)
as
string
:
6
return
song
.
Name
7
8
[
property
(
Name
)]
9
_name
=
""
10
11
class
Person
:
12
[
property
(
Favorite
)]
13
_favorite
as
Song
14
15
p
as
duck
=
Person
(
Favorite
:
Song
(
Name
:
"a love supreme"
))
16
s
as
string
=
p
.
Favorite
17
print
s