From 66a3623d59a261830076c7ad2b04fbb82e415547 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 13 Jan 2012 13:32:56 -0800 Subject: Fixed overloading in package objects. Implementing a warning for the behavior described in SI-1987 gave me enough of a foot in the door to fix it rather than warning about it. I suppose this is a variation of rubber ducky debugging. % scalac -Ylog:typer test/files/run/t1987.scala [log typer] !!! Overloaded package object member resolved incorrectly. Discarded: def duh(n: Double): Unit Using: val duh: (n: Double)Unit (n: Long)Unit Review by @odersky. --- test/files/run/t1987.check | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/files/run/t1987.check (limited to 'test/files/run/t1987.check') diff --git a/test/files/run/t1987.check b/test/files/run/t1987.check new file mode 100644 index 0000000000..d2102a4a18 --- /dev/null +++ b/test/files/run/t1987.check @@ -0,0 +1,16 @@ +long +long +double +double +long +long +double +double +long +long +double +double +long +long +double +double -- cgit v1.2.3