mixed up class and meta, fixed
This commit is contained in:
parent
bcc366f8fd
commit
9fd7c79cfb
@ -47,7 +47,7 @@ module Soml
|
||||
name = expression.first
|
||||
clazz = Parfait::Space.object_space.get_class_by_name! name
|
||||
raise "No such class #{name}" unless clazz
|
||||
reg = use_reg :Class , clazz
|
||||
reg = use_reg :MetaClass , clazz
|
||||
add_code Register::LoadConstant.new( expression, clazz , reg )
|
||||
return reg
|
||||
end
|
||||
|
@ -15,7 +15,7 @@ module Soml
|
||||
me = use_reg @method.for_class.name
|
||||
add_code Register.get_slot(statement, :message , :receiver , me )
|
||||
end
|
||||
if(me.type == :Class)
|
||||
if(me.type == :MetaClass)
|
||||
clazz = me.value.meta
|
||||
else
|
||||
# now we have to resolve the method name (+ receiver) into a callable method
|
||||
|
Loading…
Reference in New Issue
Block a user