bug: undetected uninitialized attr because of generic
[nit.git] / tests / base_closure10.nit
index 8fb7b33..5517fa1 100644 (file)
@@ -16,7 +16,7 @@
 
 import kernel
 
-meth foo with k
+fun foo !k
 do
        ' '.output
        '<'.output
@@ -27,13 +27,13 @@ do
        1.output
 end
 
-meth test
+fun test
 do
        '<'.output
        0.output
        var i = 0
        while i < 3 do
-               foo with do
+               foo !k do
                        ' '.output
                        ' '.output
                        '<'.output