diff options
author | Martin Odersky <odersky@gmail.com> | 2012-04-12 23:47:59 -0700 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2012-04-12 23:47:59 -0700 |
commit | 1c89ab72339fee8767869585f28811d5e2e437b1 (patch) | |
tree | c794d4b1d52af53beca4829c6ee159bd53d37af6 /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | |
parent | a7a1e3a1959f26c9b44b40b328ef217b4ebdbaba (diff) | |
download | scala-1c89ab72339fee8767869585f28811d5e2e437b1.tar.gz scala-1c89ab72339fee8767869585f28811d5e2e437b1.tar.bz2 scala-1c89ab72339fee8767869585f28811d5e2e437b1.zip |
Enabling postfix ops feature warning, and working on libs to avoid them.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index 431f0593b9..ef11427677 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -2625,7 +2625,7 @@ self => val contextBoundBuf = new ListBuffer[Tree] val tparams = typeParamClauseOpt(name, contextBoundBuf) classContextBounds = contextBoundBuf.toList - val tstart = in.offset :: classContextBounds.map(_.pos.startOrPoint) min; + val tstart = (in.offset :: classContextBounds.map(_.pos.startOrPoint)).min if (!classContextBounds.isEmpty && mods.isTrait) { syntaxError("traits cannot have type parameters with context bounds `: ...' nor view bounds `<% ...'", false) classContextBounds = List() |