nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Callref bugfix in interpreter and compilers + autosav
[nit.git]
/
tests
/
test_callref.nit
diff --git
a/tests/test_callref.nit
b/tests/test_callref.nit
index
66125d6
..
08c3219
100644
(file)
--- a/
tests/test_callref.nit
+++ b/
tests/test_callref.nit
@@
-57,6
+57,9
@@
class C[E]
end
return "x is null"
end
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
end
var a = new A
@@
-102,3
+105,6
@@
c2.x = 100
print f6.call # "x is test"
print f7.call # "x is 100"
print f6.call # "x is test"
print f7.call # "x is 100"
+
+var f8 = c2.foo
+print f8.call # "x is 100"