syntax: 'meth' -> 'fun', 'attr' -> 'var'
[nit.git] / tests / test_attr_long.nit
index b29a1aa..1444e23 100644 (file)
 # limitations under the License.
 
 class A
-       attr _a_: Int = 0
+       var _a_: Int = 0
 
-       meth a: Int
+       fun a: Int
        do
                return _a_ * 10
        end
 
-       meth a=(a: Int)
+       fun a=(a: Int)
        do
                _a_ = a / 10
        end