summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-06-21 21:54:03 +0000
committerPaul Phillips <paulp@improving.org>2011-06-21 21:54:03 +0000
commita3b1d1130c8c5656e493810de5a06331dfea09bb (patch)
tree033b2f9ce87663fabee40911c7830ffee52224c6
parenta546fc8f4979a0705e62df71b905860e1ce0a89d (diff)
downloadscala-a3b1d1130c8c5656e493810de5a06331dfea09bb.tar.gz
scala-a3b1d1130c8c5656e493810de5a06331dfea09bb.tar.bz2
scala-a3b1d1130c8c5656e493810de5a06331dfea09bb.zip
Removed "isInterpreterWrapper" from the conditi...
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.
-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 }"""
+}
+