contracts: change the contract syntax
[nit.git] / tests / base_attr6.nit
index 3945095..03fe206 100644 (file)
@@ -22,7 +22,7 @@ class A
 end
 
 class B
-special A
+       super A
        redef fun foo: Int do return super + 10
        redef fun bar=(i: Int)
        do
@@ -37,7 +37,7 @@ special A
                i.output
                super(i+30)
        end
-       redef var vaz: Int redef writable = 40
+       redef var vaz: Int = 40 is redef writable
 end
 
 var b = new B