Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Scala 2.10.0-M3
    • Component/s: Misc Compiler
    • Labels:
      None

      Description

      object Bippy {
        implicit final class C(val x: Int) extends AnyVal {
          def +++[@specialized T](y: T) = ()
        }
        def f = 1 +++ 2
      }
      
      $plus$plus$plus$mIc$sp not found in class C's decls: Scope{
        val x: Int;
        private[this] val x: Int;
        def <init>(x: Int): Bippy.C;
        def +++[T](y: T): Unit;
        override def hashCode(): Int;
        override def equals(x$1: Any): Boolean
      }
      	at scala.Predef$.assert(Predef.scala:182)
      	at scala.tools.nsc.Global.assert(Global.scala:213)
      	at scala.tools.nsc.transform.ExtensionMethods.scala$tools$nsc$transform$ExtensionMethods$$extensionNames(ExtensionMethods.scala:65)
      	at scala.tools.nsc.transform.ExtensionMethods$$anonfun$extensionMethod$1.apply(ExtensionMethods.scala:74)
      	at scala.tools.nsc.transform.ExtensionMethods$$anonfun$extensionMethod$1.apply(ExtensionMethods.scala:72)
      	at scala.reflect.internal.SymbolTable.atPhase(SymbolTable.scala:185)
      

        Issue Links

          Activity

          Hide
          Aleksandar Prokopec added a comment -

          Didn't look into internals of extension methods before, but unless someone knows what the fix is exactly, I can take a look at this one.

          Show
          Aleksandar Prokopec added a comment - Didn't look into internals of extension methods before, but unless someone knows what the fix is exactly, I can take a look at this one.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development