summaryrefslogtreecommitdiff
path: root/test/files/pos/t8965.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t8965.scala')
-rw-r--r--test/files/pos/t8965.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/t8965.scala b/test/files/pos/t8965.scala
new file mode 100644
index 0000000000..4f39330f4e
--- /dev/null
+++ b/test/files/pos/t8965.scala
@@ -0,0 +1,7 @@
+class A {
+ def f(x: Any with AnyRef, y: Any with AnyRef) = x eq y
+ // a.scala:2: warning: Any and Any are unrelated: they will most likely never compare equal
+ // def f(x: Any with AnyRef, y: Any with AnyRef) = x eq y
+ // ^
+ // one warning found
+}