Details
-
Type:
Bug
-
Status: CLOSED
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Scala 2.10.0-M3
-
Component/s: Compiler (Misc)
-
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)
|
Attachments
Issue Links
- relates to
-
SI-6804 specialization regression with overriding
-
- Open
-
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.