contracts: change the contract syntax
[nit.git] / tests / error_inh_loop.nit
index 510e4bd..0f639a8 100644 (file)
@@ -14,8 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-class Object
-end
+import kernel
 
 class A
        super B
@@ -28,3 +27,6 @@ end
 class C
        super A
 end
+
+var a = new A
+a.output