diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2010-10-13 16:48:33 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2010-10-13 16:48:33 +0000 |
commit | 15f4e9fc9bab8a7d4e2240dd2eb47d4f63c63c04 (patch) | |
tree | ed3c7c4c5c21a3c7694f1da1261462e90e615641 /test/files | |
parent | 0e7b7a50c6dab3097608bf477d89e13c4332a602 (diff) | |
download | scala-15f4e9fc9bab8a7d4e2240dd2eb47d4f63c63c04.tar.gz scala-15f4e9fc9bab8a7d4e2240dd2eb47d4f63c63c04.tar.bz2 scala-15f4e9fc9bab8a7d4e2240dd2eb47d4f63c63c04.zip |
closes #3862.
Diffstat (limited to 'test/files')
-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 |