uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

Call to void native method returns null instead of void #911

Closed javierfernandes closed 8 years ago

javierfernandes commented 8 years ago

Related to #845

This is for this particular case in the REPL

Wollok interactive console (type "quit" to quit):
>>> const list = [1,2,3]
[1, 2, 3]
>>> list.remove(1)
null
>>> 

In this example Collection.remove() is a void method.

The output of the program in the repl is

Wollok interactive console (type "quit" to quit):
>>> const list = [1,2,3]
[1, 2, 3]
>>> list.remove(1)
null
>>> 
javierfernandes commented 8 years ago

Fixed !

The output now is

Wollok interactive console (type "quit" to quit):
>>> const list = [1,2,3]
[1, 2, 3]
>>> list.remove(1)
>>> 

So.. nothing gets printed