From 9117cbee2715ce184829a9f5b1b839240083d166 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Mon, 16 Jul 2012 23:52:28 +0200 Subject: SI-6086 magic symbols strike back Some of the symbols inside the compiler get created on the fly, because there are no physical entities in classfiles corresponding to them. This curious fact needs to be taken into account when loading symbols, so that the magic symbols get correctly loaded by reflective mirrors. magicSymbols (as defined in Definitions.scala) include not only top-level classes, but some other stuff (e.g. String_+ or methods on Any). Hence a filtering was done to exclude the stuff that's irrelevant to reflective symbol loading. Unfortunately a filter was configured to accept only _.isClass, which consequently ruled out scala.AnyRef (that is a type alias). --- test/files/run/t6086-repl.check | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/files/run/t6086-repl.check (limited to 'test/files/run/t6086-repl.check') diff --git a/test/files/run/t6086-repl.check b/test/files/run/t6086-repl.check new file mode 100644 index 0000000000..f868aa18d0 --- /dev/null +++ b/test/files/run/t6086-repl.check @@ -0,0 +1,12 @@ +Type in expressions to have them evaluated. +Type :help for more information. + +scala> + +scala> case class X(s: String) +defined class X + +scala> scala.reflect.runtime.universe.typeOf[X] +res0: reflect.runtime.universe.Type = X + +scala> -- cgit v1.2.3