Closed dsawardekar closed 11 years ago
@luke-gru I'm having an issue with creating and passing an object to a function as an argument.
The following code compiles without errors.
class Person end def add_person(person) echo 'add_person' end add_person(new Person())
The compiled code contains an extra newline in the add_person call.
add_person
function! g:PersonConstructor() let personObj = {} return personObj endfunction function! s:add_person(person) echo 'add_person' endfunction call s:add_person(g:PersonConstructor() )
This extra newline makes this code invalid.
Thanks for the report! Will fix, and let you know when it's ready.
EDIT: fixed in master. No new release created yet, but I will make a 0.3.0 release soon. Thanks again!
master
0.3.0
Confirmed fixed in master.
@luke-gru I'm having an issue with creating and passing an object to a function as an argument.
The following code compiles without errors.
The compiled code contains an extra newline in the
add_person
call.This extra newline makes this code invalid.