implements argument assignment

This commit is contained in:
Torsten Ruger
2017-04-13 14:14:43 +03:00
parent d2d845266e
commit 9dd4409009
6 changed files with 89 additions and 12 deletions

View File

@ -4,10 +4,10 @@ module MomCompile
include CompilerHelper
def compile_first_method input
lst = Vool::VoolCompiler.compile as_main( input )
lst = Vool::VoolCompiler.compile as_test_main( input )
assert_equal Parfait::Class , lst.clazz.class , input
method = lst.clazz.get_method(:main)
assert method
@method = lst.clazz.get_method(:main)
assert @method
lst.to_mom( nil ).first
end