contracts: change the contract syntax
[nit.git] / tests / base_attr.nit
index bb60484..4fef2d7 100644 (file)
@@ -16,7 +16,7 @@
 
 import end
 
-class Object
+interface Object
 end
 
 class Int
@@ -24,8 +24,8 @@ class Int
 end
 
 class Foo
-       var _a1: Int
-       var _a2: Int
+       var a1: Int is noinit
+       var a2: Int is noinit
        fun run
        do
                _a1.output
@@ -40,8 +40,8 @@ class Foo
 end
 
 class Bar
-special Foo
-       var _a3: Int
+       super Foo
+       var a3: Int is noinit
        redef fun run
        do
                _a1.output