Details
-
Type:
Bug
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Scala 2.10.0-M3, Scala 2.10.0
-
Component/s: None
-
Labels:
Description
Compiled in -M2, not presently.
object C {
|
def join(in: Seq[List[_]]): Int = error("TODO")
|
def join[S](in: Seq[List[S]]): String = error("TODO")
|
|
join(Seq[List[Int]]())
|
//
|
// ./a.scala:13: error: ambiguous reference to overloaded definition,
|
// both method join in object C of type [S](in: Seq[List[S]])String
|
// and method join in object C of type (in: Seq[List[_]])Int
|
// match argument types (Seq[List[Int]])
|
// join(Seq[List[Int]]())
|
// ^
|
// one error found
|
}
|
fixed by https://github.com/adriaanm/scala/commit/3e20bebd192444d8c1b079489292011e8030b532