Skip to content

Commit

Permalink
SI-7767 avoid rejecting Scaladoc comments in early initializers
Browse files Browse the repository at this point in the history
review by @retronym
  • Loading branch information
huitseeker committed Sep 9, 2013
1 parent 7fa0e60 commit 48283ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
Expand Up @@ -2772,6 +2772,8 @@ self =>
List(copyValDef(vdef)(mods = mods | Flags.PRESUPER))
case tdef @ TypeDef(mods, name, tparams, rhs) =>
List(treeCopy.TypeDef(tdef, mods | Flags.PRESUPER, name, tparams, rhs))
case docdef @ DocDef(comm, rhs) =>
List(treeCopy.DocDef(docdef, comm, rhs))
case stat if !stat.isEmpty =>
syntaxError(stat.pos, "only type definitions and concrete field definitions allowed in early object initialization section", false)
List()
Expand Down

0 comments on commit 48283ca

Please sign in to comment.