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
@@ -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