Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 22 lines (16 sloc) 0.216 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
"""
A.Foo
A.Foo
B.Foo
"""
class A:
virtual def Foo():
print "A.Foo"

class B(A):
new virtual def Foo():
print "B.Foo"

def FooOn(a as A):
a.Foo()

FooOn A()
FooOn B()
B().Foo()


Something went wrong with that request. Please try again.