rename (corrected) method def to instance methods in class

This commit is contained in:
Torsten Ruger
2014-08-23 23:57:47 +03:00
parent ad6be2676c
commit a7bfb6e6ee
9 changed files with 18 additions and 19 deletions

View File

@ -10,7 +10,7 @@ module Ast
new_method = Virtual::MethodDefinition.new(name , args , r )
new_method.class_name = r.is_a?(Boot::BootClass) ? r.name : method.class_name
clazz = Virtual::Object.space.get_or_create_class(new_method.class_name)
clazz.add_method_definition new_method
clazz.add_instance_method new_method
#frame = frame.new_frame
return_type = nil