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_if.nit
diff --git a/tests/icode_dmr_if.nit
b/tests/icode_dmr_if.nit
new file mode 100644
(file)
index 0000000..
cf1ae4c
--- /dev/null
+++ b/
tests/icode_dmr_if.nit
@@ -0,0
+1,17
@@
+
+class A
+ fun foo do
+ print "foo"
+ end
+
+ fun bar do
+ print "bar"
+ end
+end
+
+var a = new A
+if true then
+ a.foo
+#alt1#else
+#alt1# a.bar
+end