diff options
author | Martin Odersky <odersky@gmail.com> | 2011-11-08 18:18:19 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-11-08 18:18:19 +0000 |
commit | 27c8266eb62bcf4a3a3c4dae54ae13cb3d017b31 (patch) | |
tree | 5bbd8532138a34c35be83f91094375ad98606a95 /src/compiler/scala/tools/nsc/Global.scala | |
parent | 5cc3dad991cde9c55c49c451a93a496a16b3afe1 (diff) | |
download | scala-27c8266eb62bcf4a3a3c4dae54ae13cb3d017b31.tar.gz scala-27c8266eb62bcf4a3a3c4dae54ae13cb3d017b31.tar.bz2 scala-27c8266eb62bcf4a3a3c4dae54ae13cb3d017b31.zip |
Distentangled platform specific code from loade...
Distentangled platform specific code from loaders so that it becomes
possible to reset class symbols to their initial loader wihtout going
through an all-or-nothing recursive buildups of package scopes,.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index 602ff6bf0e..2bbf2f9ac7 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -62,13 +62,13 @@ class Global(var currentSettings: Settings, var reporter: Reporter) extends Symb // platform specific elements - type ThisPlatform = Platform[_] { val global: Global.this.type } + type ThisPlatform = Platform { val global: Global.this.type } lazy val platform: ThisPlatform = if (forMSIL) new { val global: Global.this.type = Global.this } with MSILPlatform else new { val global: Global.this.type = Global.this } with JavaPlatform - def classPath: ClassPath[_] = platform.classPath + def classPath: ClassPath[platform.BinaryRepr] = platform.classPath def rootLoader: LazyType = platform.rootLoader // sub-components -------------------------------------------------- |