last fixes from source change

This commit is contained in:
Torsten Ruger
2015-10-28 21:40:48 +02:00
parent 5d3aace459
commit e4201143b3
4 changed files with 10 additions and 9 deletions

View File

@ -28,9 +28,9 @@ module Soml
if(@method)
#puts "Warning, redefining method #{name}" unless name == :main
#TODO check args / type compatibility
@method.source.init @method
init_method
else
@method = Register::MethodSource.create_method_for(@clazz, name , args )
create_method_for(@clazz, name , args ).init_method
@clazz.add_instance_method @method
end
#puts "compile method #{@method.name}"