Skip to content

Instantly share code, notes, and snippets.

@baroquebobcat
Created October 18, 2011 01:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save baroquebobcat/1294421 to your computer and use it in GitHub Desktop.
Blog post notes
$ bundle exec mirah -V 110.mirah
* [AST] [Import] Import(ArrayList = java.util.ArrayList) resolved!
* [Mirah::Typer] New type defined: 'CallableOneArg' < ''
...
110.mirah:17: undefined method `each' for nil:NilClass
RubyInt.new.times do |n|
^^^^^^^^^^^^^^^^^^^^^^^^^
^
end
^^^
NoMethodError: undefined method `each' for nil:NilClass
add_methods at mirah/lib/mirah/ast/structure.rb:180
prepare at mirah/lib/mirah/ast/structure.rb:165
infer at mirah/lib/mirah/ast/call.rb:200
send at org/jruby/RubyKernel.java:2100
method_missing at ~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.8/delegate.rb:292
infer at mirah/lib/mirah/typer/simple.rb:275
resolve at mirah/lib/mirah/typer/simple.rb:324
def run_me r : Runnable
r.run
end
run_me do
puts "running in a block"
end
run_me do
def run
puts "running in a method in a block"
end
end
package org.hello.world
import org.shatner.ShatnerBase
class HelloWorld < ShatnerBase
get '/' do
edb :hello
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment