Skip to content
This repository has been archived by the owner on Sep 12, 2021. It is now read-only.

Commit

Permalink
Scala 2.13 deprecates language.higherKinds so make it a flag for 2.12 (
Browse files Browse the repository at this point in the history
  • Loading branch information
nafg authored and akkie committed Dec 18, 2019
1 parent 78bea55 commit 12976ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions project/BuildSettings.scala
Expand Up @@ -48,6 +48,7 @@ object BasicSettings extends AutoPlugin {
),
scalacOptions ++= {
if(Util.priorTo213(scalaVersion.value)) Seq(
"-language:higherKinds",
"-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver.
"-Ywarn-nullary-override" // Warn when non-nullary overrides nullary, e.g. def foo() over def foo.
) else Nil
Expand Down
Expand Up @@ -24,7 +24,6 @@ import com.mohiva.play.silhouette.api.util.ExecutionContextProvider
import play.api.mvc.{ Result, RequestHeader, Request, AnyContent }

import scala.concurrent.Future
import scala.language.higherKinds

/**
* A result which can transport a result as also additional data through the request handler process.
Expand Down

0 comments on commit 12976ca

Please sign in to comment.