Skip to content

Commit

Permalink
simplify nested_classes example
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkdoor committed Nov 14, 2012
1 parent 0893741 commit 274a46d
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions examples/nested_classes.fy
Expand Up @@ -3,25 +3,13 @@


class Outer { class Outer {
class Inner { class Inner {
def to_s {
"Outerr::Inner"
}
}

def to_s {
"Outer"
} }
} }



Outer name println
o = Outer new Outer Inner name println
o println
i = Outer::Inner new
i println


class Outer InnerTwo { class Outer InnerTwo {
def to_s { "Outer InnerTwo" }
} }


i = Outer InnerTwo new Outer InnerTwo name println
i println

0 comments on commit 274a46d

Please sign in to comment.