summaryrefslogtreecommitdiff
path: root/test/files/pos/t3837.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2010-10-16 16:55:30 +0000
committerMartin Odersky <odersky@gmail.com>2010-10-16 16:55:30 +0000
commit0642bdf04484bfccd03abacdd278750eebf22d98 (patch)
tree91f3846716e76231053fb71f1130d58cfdc2e0e1 /test/files/pos/t3837.scala
parent80dc8f4e275aa75f1fd6a2448cf7c47b90617bc5 (diff)
downloadscala-0642bdf04484bfccd03abacdd278750eebf22d98.tar.gz
scala-0642bdf04484bfccd03abacdd278750eebf22d98.tar.bz2
scala-0642bdf04484bfccd03abacdd278750eebf22d98.zip
new tests. no review.
Diffstat (limited to 'test/files/pos/t3837.scala')
-rw-r--r--test/files/pos/t3837.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t3837.scala b/test/files/pos/t3837.scala
new file mode 100644
index 0000000000..bcaf63cc8d
--- /dev/null
+++ b/test/files/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()
+// ^