soml-parser/test/cases/function_definition/class_function.tst
Torsten Ruger 20b6c9b476 fix class functions
some extra tests in the process
2015-09-20 15:51:08 +03:00

13 lines
230 B
Scilab

int self.length( ref x )
length
end
-- -- --
s(:expressions,
s(:function, :int,
s(:name, :length),
s(:parameters,
s(:parameter, :ref, :x)),
s(:expressions,
s(:name, :length)),
s(:receiver, :self)))