Created
March 28, 2011 01:09
-
-
Save thasmin/889836 to your computer and use it in GitHub Desktop.
mirah overriding method bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A | |
def func(i:int):long | |
long(i) | |
end | |
end | |
class B < A | |
def func(i:int):int | |
i + 10 | |
end | |
end | |
a = A(B.new) | |
#b = B.new | |
puts a.func 5 | |
#puts b.func 5 | |
#puts A(b).func 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment