X-Git-Url: http://nitlanguage.org diff --git a/tests/test_create_more.nit b/tests/test_create_more.nit index c1a0252..4d1951f 100644 --- a/tests/test_create_more.nit +++ b/tests/test_create_more.nit @@ -15,26 +15,26 @@ # limitations under the License. class A - attr _attribute: A - attr _num: Char + var _attribute: nullable A + var _num: Char - meth foo=(a: A) + fun foo=(a: nullable A) do _attribute = a end - meth foo: A + fun foo: nullable A do return _attribute end - meth bar=(c: Char, a: A) + fun bar=(c: Char, a: nullable A) do _num = c _attribute = a end - meth bar(c: Char): A + fun bar(c: Char): nullable A do if c == _num then return _attribute @@ -43,7 +43,7 @@ class A end end - redef meth to_s: String + redef fun to_s: String do var s = _num.to_s if _attribute == null then @@ -61,7 +61,7 @@ class A _num = '*' end - init init2(c: Char, a: A) + init init2(c: Char, a: nullable A) do _num = c _attribute = a