Skip to content

Instantly share code, notes, and snippets.

@woodie
Created March 27, 2011 08:09
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 woodie/889025 to your computer and use it in GitHub Desktop.
Save woodie/889025 to your computer and use it in GitHub Desktop.
$ mirah -e '
class Foo
def self.bar() void
puts "baz"
end
end
Foo.bar
'
Inference Error:
DashE:3: Cannot find static method void() on Foo
$ mirah -e '
class Foo
def self.bar; returns void
puts "baz"
end
end
Foo.bar
'
baz
$ mirah -e '
class Foo
def self.bar():void
puts "baz"
end
end
Foo.bar
'
baz
$ mirah -e '
class Foo
def self.bar() :void
puts "baz"
end
end
Foo.bar
'
baz
$ mirah -e '
class Foo
def self.bar :void
puts "baz"
end
end
Foo.bar
'
baz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment