summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-06-02 16:00:21 +0000
committerpaltherr <paltherr@epfl.ch>2004-06-02 16:00:21 +0000
commitb4f40a720cc5dbc2472b1882615226cce14b5e70 (patch)
treedadd1dd557f48aa06adfbb3edb8ff28f470653b8 /sources
parent06c5b6bf941eed5df16ebf574989375214be2e6f (diff)
downloadscala-b4f40a720cc5dbc2472b1882615226cce14b5e70.tar.gz
scala-b4f40a720cc5dbc2472b1882615226cce14b5e70.tar.bz2
scala-b4f40a720cc5dbc2472b1882615226cce14b5e70.zip
- Disabled code that breaks separate compilation
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/tools/scalac/typechecker/Analyzer.scala23
1 files changed, 12 insertions, 11 deletions
diff --git a/sources/scala/tools/scalac/typechecker/Analyzer.scala b/sources/scala/tools/scalac/typechecker/Analyzer.scala
index d1e381b2d7..3fe19e6675 100644
--- a/sources/scala/tools/scalac/typechecker/Analyzer.scala
+++ b/sources/scala/tools/scalac/typechecker/Analyzer.scala
@@ -942,17 +942,18 @@ class Analyzer(global: scalac_Global, descr: AnalyzerPhase) extends Transformer(
val info = new LazyTreeType(tree);
clazz.setInfo(info);
modul.setInfo(info);
- val lclass = modul.linkedClass();
- // Taken from SymbolLoader.initializeRoot()
- if (lclass != null) {
- if (lclass.rawInfo().isInstanceOf[SymbolLoader] &&
- !lclass.rawInfo().isInstanceOf[SourceCompleter]) {
- lclass.setInfo(Type.ErrorType);
- //val allConstr = lclass.allConstructors();
- //allConstr.setInfo(Type.ErrorType);
- //allConstr.flags = allConstr.flags | Modifiers.PRIVATE;
- }
- }
+ // !!! Unfortunately, this breaks separate compilation
+// val lclass = modul.linkedClass();
+// // Taken from SymbolLoader.initializeRoot()
+// if (lclass != null) {
+// if (lclass.rawInfo().isInstanceOf[SymbolLoader] &&
+// !lclass.rawInfo().isInstanceOf[SourceCompleter]) {
+// lclass.setInfo(Type.ErrorType);
+// //val allConstr = lclass.allConstructors();
+// //allConstr.setInfo(Type.ErrorType);
+// //allConstr.flags = allConstr.flags | Modifiers.PRIVATE;
+// }
+// }
}
enterSym(tree, modul)