Skip to content

Commit c998ee1

Browse files
authored
Merge pull request #480 from OndrejSpanel/main
Provide explicit type to Scanner.rest
2 parents e99ef3a + 02b50a3 commit c998ee1

File tree

1 file changed

+1
-1
lines changed
  • shared/src/main/scala/scala/util/parsing/combinator/lexical

1 file changed

+1
-1
lines changed

shared/src/main/scala/scala/util/parsing/combinator/lexical/Scanners.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ trait Scanners extends Parsers {
5757
override def source: java.lang.CharSequence = in.source
5858
override def offset: Int = in.offset
5959
def first = tok
60-
def rest = new Scanner(rest2)
60+
def rest: Scanner = new Scanner(rest2)
6161
def pos = rest1.pos
6262
def atEnd = in.atEnd || (whitespace(in) match { case Success(_, in1) => in1.atEnd case _ => false })
6363
}

0 commit comments

Comments
 (0)