nullable: enforce static and dynamic rules.
[nit.git] / tests / bench_send.nit
index 61c57fb..ee546c9 100644 (file)
@@ -16,7 +16,7 @@
 
 
 class A
-       readable writable attr _val: Int
+       readable writable attr _val: Int = 0
        meth hop(a: A, b: A, c: A)
        do
                if a.val > val then
@@ -58,7 +58,7 @@ special A
                return 1
        end
 
-       redef init
+       init
        do
        end
 end
@@ -70,7 +70,7 @@ special A
                return 2
        end
 
-       redef init
+       init
        do
        end
 end
@@ -82,7 +82,7 @@ special A
                return 3
        end
 
-       redef init
+       init
        do
        end
 end