Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / error_attr_assign.nit
index 64afb68..8265b99 100644 (file)
 # limitations under the License.
 
 class A
-       attr _toto: Int
-       meth m
+       var toto: Int
+       fun m
        do
                _toto = 't'
        end
 end
+
+var a = new A(1)
+a.m