summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/reflect/internal/Symbols.scala2
-rw-r--r--test/files/run/bug4710.check7
-rw-r--r--test/files/run/bug4710.scala6
3 files changed, 14 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/internal/Symbols.scala b/src/compiler/scala/reflect/internal/Symbols.scala
index 858152870b..199678b5e0 100644
--- a/src/compiler/scala/reflect/internal/Symbols.scala
+++ b/src/compiler/scala/reflect/internal/Symbols.scala
@@ -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.
*/
diff --git a/test/files/run/bug4710.check b/test/files/run/bug4710.check
new file mode 100644
index 0000000000..aa2f08d452
--- /dev/null
+++ b/test/files/run/bug4710.check
@@ -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>
diff --git a/test/files/run/bug4710.scala b/test/files/run/bug4710.scala
new file mode 100644
index 0000000000..5e5b1e86b5
--- /dev/null
+++ b/test/files/run/bug4710.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 }"""
+}
+