nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: add some basic tests for dead method removal/cha/rta
[nit.git]
/
tests
/
icode_dmr_simple.nit
diff --git a/tests/icode_dmr_simple.nit
b/tests/icode_dmr_simple.nit
new file mode 100644
(file)
index 0000000..
5d3e6eb
--- /dev/null
+++ b/
tests/icode_dmr_simple.nit
@@ -0,0
+1,16
@@
+
+class A
+ fun foo do
+ #alt2#bar
+ print "foo"
+ end
+
+ fun bar do
+ #alt3#foo
+ print "bar"
+ end
+end
+
+var a = new A
+a.foo
+#alt1#a.bar