diff options
author | Paul Phillips <paulp@improving.org> | 2013-09-18 08:02:32 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-09-18 08:02:36 -0700 |
commit | 2b03ac41c0f53d7a411e7f232d6814d7d51051a3 (patch) | |
tree | 3addaef5b4e39a4eab9c829421582f7109607e08 /src/compiler/scala/tools/nsc/package.scala | |
parent | a8543ef28f8fc0152208f4eef763344657bf9e5a (diff) | |
download | scala-2b03ac41c0f53d7a411e7f232d6814d7d51051a3.tar.gz scala-2b03ac41c0f53d7a411e7f232d6814d7d51051a3.tar.bz2 scala-2b03ac41c0f53d7a411e7f232d6814d7d51051a3.zip |
Type housekeeping.
Moved ListOfNil somewhere more generally accessible. No
reason the compiler should hoard it for itself. Flitted
to a few locations with constructs like ".head.head" and
".tail.head" looking for code which could be rewritten. Found
some, admittedly not always making use of ListOfNil.
Made overdue moves of ConstantType(Constant(true|false|null))
to vals in Definitions.
Diffstat (limited to 'src/compiler/scala/tools/nsc/package.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/package.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/package.scala b/src/compiler/scala/tools/nsc/package.scala index 761fd79358..817a4a5c88 100644 --- a/src/compiler/scala/tools/nsc/package.scala +++ b/src/compiler/scala/tools/nsc/package.scala @@ -23,5 +23,6 @@ package object nsc { type MissingRequirementError = scala.reflect.internal.MissingRequirementError val MissingRequirementError = scala.reflect.internal.MissingRequirementError - val ListOfNil = List(Nil) + @deprecated("Use scala.reflect.internal.util.ListOfNil", "2.11.0") + lazy val ListOfNil = scala.reflect.internal.util.ListOfNil } |