You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one is also in 2.10, not a regression. The code is essentially the same as the code in #8133, except instead of an implicit class I have a non-implicit class and an implicit conversion, and combined into one file because it no longer depends on separate compilation (but it still depends on AnyOps extending AnyVal.)
% scalac3 a.scala && scalac3 a.scala
error:EmptyScope.enter
error: scala.reflect.internal.FatalError:EmptyScope.enter
whilecompiling: a.scala
during phase: extmethods
library version: version 2.11.0-20140109-065029-992050a619
compiler version: version 2.11.0-20140109-065029-992050a619
reconstructed args:
last tree to typer: Ident(x)
tree position: line 2 of a.scala
tree tpe: Booleansymbol: value x
symbol definition: x: Boolean (a TermSymbol)
symbol package: <none>
symbol owners: value x
call site: constructor AnyOps in classAnyOps in packagepkg==Source file context for tree position ==0packageobjectpkg {
1classAnyOps(valx:Any) extendsAnyVal { defto_s:String=""+ x }
2implicitdefmkAnyOps(x: Any):AnyOps=newAnyOps(x)
3 }
4packagepkg {
5packageobjectother { }
6packageother { classCrash { deff() =List(1) map (_.to_s) } }
at scala.reflect.internal.SymbolTable.abort(SymbolTable.scala:56)
at scala.tools.nsc.Global.abort(Global.scala:263)
at scala.reflect.internal.Scopes$EmptyScope$.enterEntry(Scopes.scala:460)
at scala.reflect.internal.Scopes$Scope.enter(Scopes.scala:131)
at scala.tools.nsc.transform.ExtensionMethods$Extender.makeExtensionMethodSymbol$1(ExtensionMethods.scala:215)
at scala.tools.nsc.transform.ExtensionMethods$Extender.transform(ExtensionMethods.scala:218)
at scala.tools.nsc.transform.ExtensionMethods$Extender.transform(ExtensionMethods.scala:125)
at scala.reflect.api.Trees$Transformer$$anonfun$transformStats$1.apply(Trees.scala:2666)
at scala.reflect.api.Trees$Transformer$$anonfun$transformStats$1.apply(Trees.scala:2664)
The text was updated successfully, but these errors were encountered:
% rm -rf pkg/; for i in 1 2; do qbin/scalac sandbox/t8134.scala; done
...
at scala.reflect.internal.SymbolTable.abort(SymbolTable.scala:56)
at scala.tools.nsc.Global.abort(Global.scala:263)
at scala.reflect.internal.Scopes$EmptyScope$.enterEntry(Scopes.scala:460)
at scala.reflect.internal.Scopes$Scope.enter(Scopes.scala:131)
at scala.tools.nsc.transform.ExtensionMethods$Extender.makeExtensionMethodSymbol$1(ExtensionMethods.scala:215)
This one is also in 2.10, not a regression. The code is essentially the same as the code in #8133, except instead of an implicit class I have a non-implicit class and an implicit conversion, and combined into one file because it no longer depends on separate compilation (but it still depends on AnyOps extending AnyVal.)
Outcome of successive compilations:
The text was updated successfully, but these errors were encountered: