summaryrefslogtreecommitdiff
path: root/test/files/pos/t6072.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-07-16 06:39:55 -0700
committerPaul Phillips <paulp@improving.org>2012-07-16 06:41:28 -0700
commit6559722330786dd26cc86b554296d5cb23eeb912 (patch)
tree870874beb02ccf3f4b0fb43e9d42d4f686e8af5f /test/files/pos/t6072.scala
parent8271c80ec0f01b031a82f27f17bb1b561691681f (diff)
downloadscala-6559722330786dd26cc86b554296d5cb23eeb912.tar.gz
scala-6559722330786dd26cc86b554296d5cb23eeb912.tar.bz2
scala-6559722330786dd26cc86b554296d5cb23eeb912.zip
Closes SI-6072, crasher with overloaded eq.
You don't want to do name-based selections in later phases if you can help it, because there is nobody left to resolve your overloads. If as in this example you're calling a known method, use the symbol. Review by @hubertp.
Diffstat (limited to 'test/files/pos/t6072.scala')
-rw-r--r--test/files/pos/t6072.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/pos/t6072.scala b/test/files/pos/t6072.scala
new file mode 100644
index 0000000000..e25ebbffc5
--- /dev/null
+++ b/test/files/pos/t6072.scala
@@ -0,0 +1,3 @@
+class A {
+ object B { def eq(lvl: Int) = ??? }
+}