aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t7475c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t7475c.scala')
-rw-r--r--tests/untried/neg/t7475c.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/t7475c.scala b/tests/untried/neg/t7475c.scala
new file mode 100644
index 000000000..cd4a8762c
--- /dev/null
+++ b/tests/untried/neg/t7475c.scala
@@ -0,0 +1,9 @@
+class A {
+ private val a: Int = 0
+ private[this] val b: Int = 0
+ class B extends A {
+ def foo(a: A) = a.a // okay
+ println(this.a) // wait, what?
+ println(this.b) // wait, what?
+ }
+}