File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/compiler/scala/tools/nsc/ast/parser Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -623,7 +623,7 @@ self =>
623
623
624
624
/** {{{
625
625
* semi = nl {nl} | `;`
626
- * nl = `\n' // where allowed
626
+ * nl = `\n` // where allowed
627
627
* }}}
628
628
*/
629
629
def acceptStatSep (): Unit = in.token match {
@@ -2915,8 +2915,8 @@ self =>
2915
2915
classContextBounds = contextBoundBuf.toList
2916
2916
val tstart = (in.offset :: classContextBounds.map(_.pos.start)).min
2917
2917
if (! classContextBounds.isEmpty && mods.isTrait) {
2918
- val viewBoundsExist = if (settings.isScala214) " " else " nor view bounds `<% ...' "
2919
- syntaxError(s " traits cannot have type parameters with context bounds `: ...' $viewBoundsExist" , skipIt = false )
2918
+ val viewBoundsExist = if (settings.isScala214) " " else " nor view bounds `<% ...` "
2919
+ syntaxError(s " traits cannot have type parameters with context bounds `: ...` $viewBoundsExist" , skipIt = false )
2920
2920
classContextBounds = List ()
2921
2921
}
2922
2922
val constrAnnots = if (! mods.isTrait) constructorAnnotations() else Nil
Original file line number Diff line number Diff line change 1
- t882.scala:2: error: traits cannot have type parameters with context bounds `: ...' nor view bounds `<% ...'
1
+ t882.scala:2: error: traits cannot have type parameters with context bounds `: ...` nor view bounds `<% ...`
2
2
trait SortedSet[A <% Ordered[A]] {
3
3
^
4
4
one error found
You can’t perform that action at this time.
0 commit comments