From 15f4e9fc9bab8a7d4e2240dd2eb47d4f63c63c04 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Wed, 13 Oct 2010 16:48:33 +0000 Subject: closes #3862. --- test/files/pos/t3862.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/pos/t3862.scala (limited to 'test') diff --git a/test/files/pos/t3862.scala b/test/files/pos/t3862.scala new file mode 100644 index 0000000000..a6dba84fea --- /dev/null +++ b/test/files/pos/t3862.scala @@ -0,0 +1,8 @@ +object OverloadingShapeType { + // comment out this, and the other alternative is chosen. + def blerg(f: String) {} + + def blerg[M[X], T](l: M[T]) {} + + blerg(List(1)) // error: type mismatch; found : List[Int] required: String +} \ No newline at end of file -- cgit v1.2.3