syntax: 'meth' -> 'fun', 'attr' -> 'var'
[nit.git] / tests / rterror_nilcall_undead.nit
index 41acebd..f2a11bf 100644 (file)
 import kernel
 
 class A
-       meth foo
+       fun foo
        do
                1.output
        end
-       meth bar: Int
+       fun bar: Int
        do
                return 2
        end
 end
 
-var a: A
+var a: A = null
 a.bar.output
 a.foo