diff options
author | Paul Phillips <paulp@improving.org> | 2012-07-16 06:39:55 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-01-30 03:50:37 -0800 |
commit | 05882ebe10f2f72ff5273b198cec02d892b3fc45 (patch) | |
tree | d14b72fbed7c96e4d52d02f4a6a14bde59e4ab38 /test | |
parent | d4437aaa4bd28dc41da13ca28a752e14b5b8e30c (diff) | |
download | scala-05882ebe10f2f72ff5273b198cec02d892b3fc45.tar.gz scala-05882ebe10f2f72ff5273b198cec02d892b3fc45.tar.bz2 scala-05882ebe10f2f72ff5273b198cec02d892b3fc45.zip |
SI-6072, crasher with overloaded eq.
[backport]
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')
-rw-r--r-- | test/files/pos/t6072.scala | 3 |
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) = ??? } +} |