diff options
Diffstat (limited to 'tests/untried/pos/t5013')
-rw-r--r-- | tests/untried/pos/t5013/Bar_2.scala | 5 | ||||
-rw-r--r-- | tests/untried/pos/t5013/Foo_1.scala | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/untried/pos/t5013/Bar_2.scala b/tests/untried/pos/t5013/Bar_2.scala new file mode 100644 index 000000000..9eac556a2 --- /dev/null +++ b/tests/untried/pos/t5013/Bar_2.scala @@ -0,0 +1,5 @@ +package b + +class Bar extends a.Foo { + println(x) // Error: Not found: value x +} diff --git a/tests/untried/pos/t5013/Foo_1.scala b/tests/untried/pos/t5013/Foo_1.scala new file mode 100644 index 000000000..ee21112a3 --- /dev/null +++ b/tests/untried/pos/t5013/Foo_1.scala @@ -0,0 +1,5 @@ +package a + +class Foo { + protected[Foo] var x = 0 +} |