gc: disable boehm by default
[nit.git] / tests / base_closure5.nit
index bef65e9..7e4edaf 100644 (file)
@@ -17,8 +17,8 @@
 import kernel
 
 class A
-       meth foo: Int
-               with bar: Int
+       fun foo: Int
+               !bar: Int
        do
                1.output
                var r = bar
@@ -27,10 +27,10 @@ class A
        end
 end
 
-meth work: Int
+fun work: Int
 do
        var a = new A
-       var i = a.foo with do
+       var i = a.foo !bar do
                2.output
                #alt1#break
                #alt2#break 'x'