From 622656dfc87100bc94a37f3b244955c96d526023 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 23 Feb 2012 10:59:55 -0800 Subject: Moved and edited tests. Remove obsolete, move passing pending -> files, update those-kinds-are-high with some new info, added a couple new ones to pending. --- test/files/pos/t1987b/b.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/files/pos/t1987b/b.scala (limited to 'test/files/pos/t1987b/b.scala') diff --git a/test/files/pos/t1987b/b.scala b/test/files/pos/t1987b/b.scala new file mode 100644 index 0000000000..a469ca6ea8 --- /dev/null +++ b/test/files/pos/t1987b/b.scala @@ -0,0 +1,10 @@ +// compile with t1987a.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