summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/tools/scalac/typechecker/Analyzer.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/scala/tools/scalac/typechecker/Analyzer.scala b/sources/scala/tools/scalac/typechecker/Analyzer.scala
index e4c18047c1..377dbdcc29 100644
--- a/sources/scala/tools/scalac/typechecker/Analyzer.scala
+++ b/sources/scala/tools/scalac/typechecker/Analyzer.scala
@@ -14,6 +14,7 @@
// todo: empty package
import ch.epfl.lamp.util.Position;
+import ch.epfl.lamp.util.Pair;
import scalac._;
import scalac.util._;
import scalac.ast._;
@@ -768,7 +769,7 @@ class Analyzer(global: scalac_Global, descr: AnalyzerPhase) extends Transformer(
// set the comment associated with a symbol
val comment: String = global.mapTreeComment.get(tree).asInstanceOf[String];
if (comment != null)
- global.mapSymbolComment.put(sym, comment);
+ global.mapSymbolComment.put(sym, new Pair(comment, unit));
sym
}