syntax: 'meth' -> 'fun', 'attr' -> 'var'
[nit.git] / tests / base_eq.nit
index b2db161..5ec38e5 100644 (file)
@@ -17,7 +17,7 @@
 import kernel
 
 class A
-       readable attr _a: Int 
+       readable var _a: Int 
        
        init(a: Int)
        do
@@ -27,7 +27,7 @@ end
 
 class B
 special A
-       redef meth ==(a: Object): Bool
+       redef fun ==(a: nullable Object): Bool
        do
                if not a isa B then
                        return false
@@ -36,7 +36,7 @@ special A
                return a.a is _a
        end
 
-       redef init(b: Int)
+       init(b: Int)
        do
                _a = b
        end