X-Git-Url: http://nitlanguage.org diff --git a/tests/test_callref.nit b/tests/test_callref.nit index 66125d6..08c3219 100644 --- a/tests/test_callref.nit +++ b/tests/test_callref.nit @@ -57,6 +57,9 @@ class C[E] end return "x is null" end + + fun bar: C[E] do return self + fun foo: Fun0[C[E]] do return &bar end var a = new A @@ -102,3 +105,6 @@ c2.x = 100 print f6.call # "x is test" print f7.call # "x is 100" + +var f8 = c2.foo +print f8.call # "x is 100"