aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-11-09 19:02:43 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-11-09 19:02:43 +0100
commit30dc9241f98f5128a6f9ae8dffea47d751255c6d (patch)
treefe5b28251cd599358b11a2b90861033355be5ca2 /tests
parentf44de2d3b3b0d99276daf3f7b3d6c5074e6c2442 (diff)
downloaddotty-30dc9241f98f5128a6f9ae8dffea47d751255c6d.tar.gz
dotty-30dc9241f98f5128a6f9ae8dffea47d751255c6d.tar.bz2
dotty-30dc9241f98f5128a6f9ae8dffea47d751255c6d.zip
Add minimized example that allows to reproduce issue in erasure.
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/ErasureAnd.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pos/ErasureAnd.scala b/tests/pos/ErasureAnd.scala
new file mode 100644
index 000000000..38c5f4c94
--- /dev/null
+++ b/tests/pos/ErasureAnd.scala
@@ -0,0 +1,11 @@
+import scala.annotation.tailrec
+trait A { self: B =>
+ @tailrec
+ private def foo(arg1: Int, arg2: Int): Int = {
+ def bar = this.foo(arg1, arg2)
+ foo(arg1, arg2)
+ }
+ def foo(arg: Int) = arg
+}
+
+class B extends A{}