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 )
|
@method.source.add_code Virtual::MethodCall.new( method )
|
||||||
else
|
else
|
||||||
method = @clazz.get_instance_method(name)
|
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 )
|
@method.source.add_code Virtual::MethodCall.new( method )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -176,10 +176,13 @@ HERE
|
|||||||
def test_function_big_while
|
def test_function_big_while
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
||||||
class Object
|
class Object
|
||||||
|
int puts(int i)
|
||||||
|
return 0
|
||||||
|
end
|
||||||
int fibonaccit(int n)
|
int fibonaccit(int n)
|
||||||
int a = 0
|
int a = 0
|
||||||
int b = 1
|
int b = 1
|
||||||
while( n > 1 ) do
|
while( n > 1 )
|
||||||
int tmp = a
|
int tmp = a
|
||||||
a = b
|
a = b
|
||||||
b = tmp + b
|
b = tmp + b
|
||||||
|
Loading…
Reference in New Issue
Block a user