Skip to content

Commit

Permalink
Fix return type on repAs1 (#99)
Browse files Browse the repository at this point in the history
* Fix return type on repAs1

* try to bump to 0.2 for mima
  • Loading branch information
johnynek authored Dec 6, 2020
1 parent 504a556 commit 848b05d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ addCommandAlias("fmtCheck", "; scalafmtCheckAll; scalafmtSbtCheck")

addCommandAlias("prePR", "; githubWorkflowGenerate ; +fmt; bench/compile; +test")

ThisBuild / baseVersion := "0.1"
ThisBuild / baseVersion := "0.2"

ThisBuild / organization := "org.typelevel"
ThisBuild / organizationName := "Typelevel"
Expand Down
4 changes: 2 additions & 2 deletions core/shared/src/main/scala/cats/parse/Parser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -659,10 +659,10 @@ object Parser extends ParserInstances {
def repAs[B](implicit acc: Accumulator[A, B]): Parser[B] =
Parser.repAs(self)(acc)

def repAs1[B](implicit acc: Accumulator1[A, B]): Parser[B] =
def repAs1[B](implicit acc: Accumulator1[A, B]): Parser1[B] =
Parser.repAs1(self, min = 1)(acc)

def repAs1[B](min: Int)(implicit acc: Accumulator1[A, B]): Parser[B] =
def repAs1[B](min: Int)(implicit acc: Accumulator1[A, B]): Parser1[B] =
Parser.repAs1(self, min = min)(acc)
}

Expand Down

0 comments on commit 848b05d

Please sign in to comment.