small fix
This commit is contained in:
parent
513bc8d7cf
commit
cd96e78e2d
@ -59,7 +59,7 @@ module Bosl
|
||||
@method.source.add_code Virtual::MethodCall.new( method )
|
||||
else
|
||||
method = @clazz.get_instance_method(name)
|
||||
raise "Method not implemented Integer.#{name}" unless method
|
||||
raise "Method not implemented #{@clazz.name}.#{name}" unless method
|
||||
@method.source.add_code Virtual::MethodCall.new( method )
|
||||
end
|
||||
end
|
||||
|
@ -176,10 +176,13 @@ HERE
|
||||
def test_function_big_while
|
||||
@string_input = <<HERE
|
||||
class Object
|
||||
int puts(int i)
|
||||
return 0
|
||||
end
|
||||
int fibonaccit(int n)
|
||||
int a = 0
|
||||
int b = 1
|
||||
while( n > 1 ) do
|
||||
while( n > 1 )
|
||||
int tmp = a
|
||||
a = b
|
||||
b = tmp + b
|
||||
|
Loading…
Reference in New Issue
Block a user