aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t4762.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t4762.check')
-rw-r--r--tests/untried/neg/t4762.check9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/t4762.check b/tests/untried/neg/t4762.check
new file mode 100644
index 000000000..a0525f622
--- /dev/null
+++ b/tests/untried/neg/t4762.check
@@ -0,0 +1,9 @@
+t4762.scala:15: warning: private[this] value x in class B shadows mutable x inherited from class A. Changes to x will not be visible within class B - you may want to give them distinct names.
+ /* (99,99) */ (this.x, this.y),
+ ^
+t4762.scala:48: warning: private[this] value x in class Derived shadows mutable x inherited from class Base. Changes to x will not be visible within class Derived - you may want to give them distinct names.
+ class Derived( x : Int ) extends Base( x ) { override def toString = x.toString }
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+two warnings found
+one error found