Skip to content

Commit 30dc924

Browse files
committed
Add minimized example that allows to reproduce issue in erasure.
1 parent f44de2d commit 30dc924

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/pos/ErasureAnd.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import scala.annotation.tailrec
2+
trait A { self: B =>
3+
@tailrec
4+
private def foo(arg1: Int, arg2: Int): Int = {
5+
def bar = this.foo(arg1, arg2)
6+
foo(arg1, arg2)
7+
}
8+
def foo(arg: Int) = arg
9+
}
10+
11+
class B extends A{}

0 commit comments

Comments
 (0)