diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2008-04-14 02:11:19 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2008-04-14 02:11:19 +0000 |
commit | f5321be1aa20242aeb20ed33c35525ca2ae90299 (patch) | |
tree | 187bd4e5c2830f9ab7a3684f8fadc4777325de80 /src | |
parent | f4ab1e5dfa6e907500c68bdca0decbd33d4369e8 (diff) | |
download | scala-f5321be1aa20242aeb20ed33c35525ca2ae90299.tar.gz scala-f5321be1aa20242aeb20ed33c35525ca2ae90299.tar.bz2 scala-f5321be1aa20242aeb20ed33c35525ca2ae90299.zip |
fix for #740
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index db35ab1681..6d75b2c9a4 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -2973,7 +2973,7 @@ trait Typers { self: Analyzer => case DocDef(comment, defn) => val ret = typed(defn, mode, pt) - if (comments ne null) comments(defn.symbol) = comment + if ((comments ne null) && (defn.symbol ne null) && (defn.symbol ne NoSymbol)) comments(defn.symbol) = comment ret case Annotation(constr, elements) => |