parser: regenerate with lambda
[nit.git] / tests / error_meth_2def2.nit
index 5765371..48c63a4 100644 (file)
@@ -15,6 +15,9 @@
 # limitations under the License.
 
 class A
-       meth toto(a: Int) do end
-       meth toto(a: Int): Int do return 0 end
+       fun toto(a: Int) do end
+       fun toto(a: Int): Int do return 0 end
 end
+
+var a = new A
+a.toto(1).output