contracts: change the contract syntax
[nit.git] / tests / bench_fib.nit
index a67cdc5..8c7d4da 100644 (file)
@@ -17,7 +17,7 @@
 # The fibbonacci program
 
 redef class Int
-       meth fib: Int
+       fun fib: Int
        # Unefficient recursive implementation
        do
                if self <= 0 then
@@ -30,7 +30,7 @@ redef class Int
        end
 end
 
-var n = 10
+var n = 20
 if not args.is_empty then
        n = args.first.to_i
 end