diff options
Diffstat (limited to 'test/files/pos/t3862.scala')
-rw-r--r-- | test/files/pos/t3862.scala | 8 |
1 files changed, 8 insertions, 0 deletions
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 |