Details

      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
      }
      

        Activity

        Show
        Adriaan Moors added a comment - fixed by https://github.com/adriaanm/scala/commit/3e20bebd192444d8c1b079489292011e8030b532

          People

          • Assignee:
            Adriaan Moors
            Reporter:
            Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development