Skip to content

Instantly share code, notes, and snippets.

@shannah
Created March 4, 2014 20:35
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 shannah/9355072 to your computer and use it in GitHub Desktop.
Save shannah/9355072 to your computer and use it in GitHub Desktop.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication30
/**
*
* @author shannah
*/
class A
def protectedMethod
puts "A::protectedMethod"
end
def run(a:A)
a.protectedMethod
end
end
a = A.new
a.run do
def protectedMethod
end
end
ERROR: Can't find method javaapplication30.A.run(org.mirah.jvm.mirrors.BlockType)
a.run do
^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment