From c49fcd10230f6531a779da834342d72f2d665926 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Tue, 1 Jun 2004 15:17:04 +0000 Subject: - 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. --- sources/scala/tools/scalac/typechecker/Analyzer.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sources') 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) -- cgit v1.2.3