From 2fefb37220f82300e2aa44442f1a42261d65e359 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 3 Oct 2010 03:19:21 +0000 Subject: One last batch of test cleanups and I think I'l... One last batch of test cleanups and I think I'll call it a day. If you're worried I didn't leave any for anyone else, let me put your fears to rest. PLENTY left to sift through. No review. --- test/pending/pos/bug1987/bug1987b.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/pending/pos/bug1987/bug1987b.scala (limited to 'test/pending/pos/bug1987/bug1987b.scala') diff --git a/test/pending/pos/bug1987/bug1987b.scala b/test/pending/pos/bug1987/bug1987b.scala new file mode 100644 index 0000000000..875f5128f2 --- /dev/null +++ b/test/pending/pos/bug1987/bug1987b.scala @@ -0,0 +1,10 @@ +// compile with bug1987a.scala + +package bug.packageb +// Note that the overloading works if instead of being in the package we import it: +// replace the above line with import bug.packageb._ + +class Client { + val x = func(1) // doesn't compile: type mismatch; found: Int(1) required: String + val y = func("1") // compiles +} -- cgit v1.2.3