contracts: change the contract syntax
[nit.git] / tests / error_attr_2def.nit
index 497cd8e..d7d7122 100644 (file)
@@ -15,6 +15,9 @@
 # limitations under the License.
 
 class A
-       var _toto: Int
-       var _toto: Object
+       var toto: Int
+       var toto: Object
 end
+
+var a = new A
+a.toto.output