8000 Enabling postfix ops feature warning, and working on libs to avoid them. · dragos/scala-parser-combinators@bde219f · GitHub
[go: up one dir, main page]

Skip to content

Commit bde219f

Browse files
oderskyadriaanm
authored andcommitted
Enabling postfix ops feature warning, and working on libs to avoid them.
1 parent 7c0a364 commit bde219f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/library/scala/util/parsing/combinator/lexical/Lexical.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ abstract class Lexical extends Scanners with Tokens {
3232
def digit = elem("digit", _.isDigit)
3333

3434
/** A character-parser that matches any character except the ones given in `cs` (and returns it).*/
35-
def chrExcept(cs: Char*) = elem("", ch => (cs forall (ch !=)))
35+
def chrExcept(cs: Char*) = elem("", ch => (cs forall (ch != _)))
3636

3737
/** A character-parser that matches a white-space character (and returns it).*/
3838
def whitespaceChar = elem("space char", ch => ch <= ' ' && ch != EofCh)

src/library/scala/util/parsing/combinator/testing/RegexTest.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package scala.util.parsing.combinator.testing
33

44
import scala.util.parsing.combinator._
55
import scala.util.parsing.input._
6+
import language.postfixOps
67

78
case class Ident(s: String)
89
case class Number(n: Int)

0 commit comments

Comments
 (0)
0