aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t3837.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t3837.scala')
-rw-r--r--tests/pos/t3837.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pos/t3837.scala b/tests/pos/t3837.scala
new file mode 100644
index 000000000..bcaf63cc8
--- /dev/null
+++ b/tests/pos/t3837.scala
@@ -0,0 +1,10 @@
+class BipClass { }
+trait BipTrait {
+ self: BipClass =>
+
+ private[this] def foo() = 5
+ def bar() = this.foo()
+}
+// error: value foo is not a member of BipTrait with BipClass
+// def bar() = this.foo()
+// ^