new function test and scoping fix

This commit is contained in:
Torsten Ruger
2015-10-14 15:17:33 +03:00
parent 1ea34481c1
commit d8a5dc147b
6 changed files with 38 additions and 31 deletions

View File

@ -45,7 +45,8 @@ module Phisol
raise ret.inspect if ret.is_a? Virtual::Instruction
end
@method = nil
Virtual::Return.new(return_type)
# function definition is a statement, does not return any value
return nil
end
end
end