diff options
author | Paul Phillips <paulp@improving.org> | 2013-04-30 05:25:10 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-04-30 08:13:58 -0700 |
commit | 12dd8c02bbb71233f7b8ab9b2cbf8e84cda2080d (patch) | |
tree | b42d6c8d84f3da7217c1de9e8d846f4cf32f468a /src/interactive/scala/tools/nsc/interactive/CompilerControl.scala | |
parent | e6af9bcd0e68859a3bb71140342bb76c136714ee (diff) | |
download | scala-12dd8c02bbb71233f7b8ab9b2cbf8e84cda2080d.tar.gz scala-12dd8c02bbb71233f7b8ab9b2cbf8e84cda2080d.tar.bz2 scala-12dd8c02bbb71233f7b8ab9b2cbf8e84cda2080d.zip |
More useful checkfile output in interactive tests.
I resisted the urge to fix "aksTypeCompletion" for as long
as I possibly could. While I was there I threw in what seem
to be like significant output improvements, but you tell me.
Diffstat (limited to 'src/interactive/scala/tools/nsc/interactive/CompilerControl.scala')
-rw-r--r-- | src/interactive/scala/tools/nsc/interactive/CompilerControl.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interactive/scala/tools/nsc/interactive/CompilerControl.scala b/src/interactive/scala/tools/nsc/interactive/CompilerControl.scala index b4d3fd8aa0..c38c7c8257 100644 --- a/src/interactive/scala/tools/nsc/interactive/CompilerControl.scala +++ b/src/interactive/scala/tools/nsc/interactive/CompilerControl.scala @@ -295,6 +295,9 @@ trait CompilerControl { self: Global => val tpe: Type val accessible: Boolean def implicitlyAdded = false + + private def accessible_s = if (accessible) "" else "[inaccessible] " + def infoString = s"$accessible_s${sym.defStringSeenAs(tpe)}" } case class TypeMember( |