From 30dc9241f98f5128a6f9ae8dffea47d751255c6d Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Mon, 9 Nov 2015 19:02:43 +0100 Subject: Add minimized example that allows to reproduce issue in erasure. --- tests/pos/ErasureAnd.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/pos/ErasureAnd.scala (limited to 'tests') 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{} -- cgit v1.2.3