Skip to content

Commit 6009f02

Browse files
committed
Scala 2.13.15 marks pattern vars as unused in for comprehension if there is a filter
See: scala/bug#13041
1 parent 7db8828 commit 6009f02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import scala.util.Properties
22
import scala.reflect.io.Path
3-
import com.typesafe.sbt.packager.docker._
3+
import com.typesafe.sbt.packager.docker.*
44
import sbtcrossproject.{CrossProject, CrossType, Platform}
55
import org.typelevel.sbt.gha.JavaSpec.Distribution.Temurin
6+
import org.typelevel.scalacoptions.ScalacOptions
67

78
/// variables
89

@@ -92,6 +93,7 @@ ThisBuild / evictionErrorLevel := Level.Info
9293
ThisBuild / tpolecatDefaultOptionsMode := {
9394
if (insideCI.value) org.typelevel.sbt.tpolecat.CiMode else org.typelevel.sbt.tpolecat.DevMode
9495
}
96+
ThisBuild / tpolecatExcludeOptions += ScalacOptions.warnUnusedPatVars // https://github.com/scala/bug/issues/13041
9597

9698
/// projects
9799

0 commit comments

Comments
 (0)