Skip to content

Instantly share code, notes, and snippets.

@enebo
Created December 11, 2020 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enebo/aa387def1e27099a47005beea0fbf0d6 to your computer and use it in GitHub Desktop.
Save enebo/aa387def1e27099a47005beea0fbf0d6 to your computer and use it in GitHub Desktop.
h = java.util.HashMap.new
h.put(1, 2)
class X
def blah(*args, **kwargs)
p args, **kwargs
args
end
end
class Y < X
def blah(*args)
super
end
end
arr = Y.new.blah(h)
p arr[0].class # Hash, should be java.util.HashMap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment