tests: remove remaining old-style accessors
[nit.git] / tests / base_attr_nullable.nit
index 3e2c6f0..08ad503 100644 (file)
@@ -25,18 +25,18 @@ enum Int
 end
 
 class Integer
-       readable writable var _val: Int
+       var _val: Int
        init(val: Int) do _val = val
        fun output do _val.output
 end
 
 class Foo
        var _a1: Integer
-       readable var _a2: Integer
+       var _a2: Integer
        fun run
        do
                _a1.output
-               a2.output
+               _a2.output
        end
 
        fun run_other(o: Foo)
@@ -50,7 +50,7 @@ class Foo
                #alt1#run
                _a1 = new Integer(1)
                #alt2#run
-               _a2 = new Integer(_a1.val + 1)
+               _a2 = new Integer(_a1._val + 1)
        end
 
        init nop do end