summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2004-06-01 15:17:04 +0000
committermihaylov <mihaylov@epfl.ch>2004-06-01 15:17:04 +0000
commitc49fcd10230f6531a779da834342d72f2d665926 (patch)
tree2beb6537b11cd9173f8ca7e7bab1f3a615d8f2f9 /sources
parent3b1dca4a7f32dc08f9a51c8357c3e57d56c53e0a (diff)
downloadscala-c49fcd10230f6531a779da834342d72f2d665926.tar.gz
scala-c49fcd10230f6531a779da834342d72f2d665926.tar.bz2
scala-c49fcd10230f6531a779da834342d72f2d665926.zip
- Initialize the linked class of a module defin...
- Initialize the linked class of a module definition to ErrorType. The module symbol may have been created by the PackageParser together with a linked class symbol related to it. If later the symbol is completed by the analyzer this fix will prevent overwriting the module symbol info by the SymbolLoader when the info of the linked class is requested.
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/tools/scalac/typechecker/Analyzer.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/scala/tools/scalac/typechecker/Analyzer.scala b/sources/scala/tools/scalac/typechecker/Analyzer.scala
index bdba70d823..927ac8bbed 100644
--- a/sources/scala/tools/scalac/typechecker/Analyzer.scala
+++ b/sources/scala/tools/scalac/typechecker/Analyzer.scala
@@ -942,6 +942,9 @@ class Analyzer(global: scalac_Global, descr: AnalyzerPhase) extends Transformer(
val info = new LazyTreeType(tree);
clazz.setInfo(info);
modul.setInfo(info);
+ if (modul.linkedClass() != null) {
+ modul.linkedClass().setInfo(Type.ErrorType);
+ }
}
enterSym(tree, modul)