aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/ErasureAnd.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/ErasureAnd.scala')
-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{}