tests: remove remaining old-style attributes declarations
[nit.git] / tests / example_point.nit
index 8a568f6..2ad57c5 100644 (file)
 
 class Point
 private
-       var _x: Int     # Abscisse
-       var _y: Int     # OrdonnĂ©e
-
-
-       fun x: Int
-       do
-               return _x
-       end
-       fun x=(i: Int)
-       do
-               _x = i
-       end
-
-       fun y: Int
-       do
-               return _y
-       end
-       fun y=(i: Int)
-       do
-               _y = i
-       end
+       var x: Int      # Abscisse
+       var y: Int      # OrdonnĂ©e
 
        # Change la position d'un point
        fun moveto(x: Int, y: Int)