goby-lang / goby

Goby - Yet another programming language written in Go
MIT License
3.49k stars 171 forks source link

Empty instance method should not be printed #151

Closed hachi8833 closed 7 years ago

hachi8833 commented 7 years ago
 class Foo
   def bar
   end
 end

 a = Foo.new
 puts(a.bar)
st0012 commented 7 years ago

The cause is that empty instance method returns the instance itself, investigating.

st0012 commented 7 years ago

Should be fixed in https://github.com/goby-lang/goby/commit/3834168f16102d7a57e1d508b4eb292b1cd0da08

hachi8833 commented 7 years ago

Confirmed the bug has been fixed!