Removed "isInterpreterWrapper" from the conditions which imply an
effective root. This was an old hack from before my time which is no longer necessary and then recently became actively hostile. Closes #4710, no review. git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25133 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
2dcc03582c
commit
df35812400
|
@ -325,7 +325,7 @@ trait Symbols /* extends reflect.generic.Symbols*/ { self: SymbolTable =>
|
|||
)
|
||||
/** Is this symbol an effective root for fullname string?
|
||||
*/
|
||||
def isEffectiveRoot = isRoot || isEmptyPackageClass || isInterpreterWrapper
|
||||
def isEffectiveRoot = isRoot || isEmptyPackageClass
|
||||
|
||||
/** Term symbols with the exception of static parts of Java classes and packages.
|
||||
*/
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
Type in expressions to have them evaluated.
|
||||
Type :help for more information.
|
||||
|
||||
scala> def method : String = { implicit def f(s: Symbol) = "" ; 'symbol }
|
||||
method: String
|
||||
|
||||
scala>
|
|
@ -0,0 +1,6 @@
|
|||
import scala.tools.partest.ReplTest
|
||||
|
||||
object Test extends ReplTest {
|
||||
def code = """def method : String = { implicit def f(s: Symbol) = "" ; 'symbol }"""
|
||||
}
|
||||
|
Loading…
Reference in New Issue