pass parfait method to to_mom
previously it was the toll incarnation, and that is almost the same But for the type of self. This s by definition only known in the parfait method And we need it off course for type checking/dispatch
This commit is contained in:
@ -26,7 +26,7 @@ module MomCompile
|
||||
assert_equal Parfait::Class , lst.clazz.class , lst
|
||||
@method = lst.clazz.get_method(:main)
|
||||
assert_equal Parfait::VoolMethod , @method.class
|
||||
res = lst.to_mom( nil )
|
||||
res = lst.create_objects
|
||||
#puts "#{res.class}"
|
||||
res
|
||||
end
|
||||
|
@ -34,7 +34,7 @@ module Vool
|
||||
|
||||
def test_class_body_is_scope
|
||||
clazz = VoolCompiler.ruby_to_vool in_Test("def meth; @ivar = 5 ;end")
|
||||
assert_equal ScopeStatement , clazz.body.class
|
||||
assert_equal MethodStatement , clazz.body.class
|
||||
end
|
||||
|
||||
def test_creates_class_without_deriviation
|
||||
|
Reference in New Issue
Block a user