Skip to content

Commit 2ecd647

Browse files
authored
Merge pull request scala#7697 from Jasper-M/topic/7583-2
Eliminate LaTeX-style quotations from compiler output and comments (round 2)
2 parents dc08168 + 11465d7 commit 2ecd647

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/compiler/scala/tools/nsc/ast/parser/Parsers.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ self =>
623623

624624
/** {{{
625625
* semi = nl {nl} | `;`
626-
* nl = `\n' // where allowed
626+
* nl = `\n` // where allowed
627627
* }}}
628628
*/
629629
def acceptStatSep(): Unit = in.token match {
@@ -2915,8 +2915,8 @@ self =>
29152915
classContextBounds = contextBoundBuf.toList
29162916
val tstart = (in.offset :: classContextBounds.map(_.pos.start)).min
29172917
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)
29202920
classContextBounds = List()
29212921
}
29222922
val constrAnnots = if (!mods.isTrait) constructorAnnotations() else Nil

test/files/neg/t882.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 `<% ...`
22
trait SortedSet[A <% Ordered[A]] {
33
^
44
one error found

0 commit comments

Comments
 (0)