Created
March 4, 2014 20:35
-
-
Save shannah/9355072 to your computer and use it in GitHub Desktop.
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
/* | |
* 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 | |
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
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