Skip to content

Instantly share code, notes, and snippets.

@thasmin
Created March 28, 2011 01:09
Show Gist options
  • Save thasmin/889836 to your computer and use it in GitHub Desktop.
Save thasmin/889836 to your computer and use it in GitHub Desktop.
mirah overriding method bug
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