From 6559722330786dd26cc86b554296d5cb23eeb912 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 16 Jul 2012 06:39:55 -0700 Subject: 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. --- test/files/pos/t6072.scala | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/files/pos/t6072.scala (limited to 'test/files') 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) = ??? } +} -- cgit v1.2.3