Merge: lib/config: fix doc
[nit.git] / tests / test_mem.nit
index f1e95f8..dc9d167 100644 (file)
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-meth foo(n: Int): List[Int]
+fun foo(n: Int): List[Int]
     do
        var a: List[Int]
        if n > 0 then
@@ -27,4 +27,7 @@ meth foo(n: Int): List[Int]
        return a
     end
 
-print(foo(23))
+var n = 10
+if args.not_empty then n = args.first.to_i
+
+print(foo(n))