Details

      Description

      Trivial overloading resolution in package object doesn't work?

      package object overloading {
          def bar(f: (Int) => Unit): Unit = ()
          def bar(f: (Int, Int) => Unit): Unit = ()
      }
       
      class PackageObjectOverloadingTest {
          overloading.bar( (i: Int) => () ) // doesn't compile.
      }

        Attachments

          Activity

            People

            • Assignee:
              odersky Martin Odersky
              Reporter:
              okomok Shunsuke Sogame
              TracCC:
              Harrison Klaperman, Paul Phillips
            • Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: