From 8f9b897594ab09dae9988a3a9aa10cc8d15606b7 Mon Sep 17 00:00:00 2001 From: Marco Miller Date: Fri, 27 Mar 2020 15:50:38 -0400 Subject: [PATCH] e2e-tests: Enable postfix operators with compiler Before this change, the scala compiler issued warnings such as the one below, upon using the usual 'sbt compile' command. "(...) postfix operator second should be enabled [warn] by making the implicit value scala.language.postfixOps visible. [warn] This can be achieved by adding the import clause 'import scala.language.postfixOps' [warn] or by setting the compiler option -language:postfixOps." Set the latter option in build.sbt to remove these warnings. This is less invasive than adding the aforementioned import clause in each file. Bug: Issue 12288 Change-Id: If52dcddbcc63579602c788455a95c5e7d9009ee2 --- e2e-tests/build.sbt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e-tests/build.sbt b/e2e-tests/build.sbt index 9c49ed2919..a322970b81 100644 --- a/e2e-tests/build.sbt +++ b/e2e-tests/build.sbt @@ -14,5 +14,6 @@ lazy val root = (project in file(".")) libraryDependencies ++= gatling ++ Seq("io.gatling" % "gatling-core" % GatlingVersion) ++ - Seq("io.gatling" % "gatling-app" % GatlingVersion) + Seq("io.gatling" % "gatling-app" % GatlingVersion), + scalacOptions += "-language:postfixOps" ) dependsOn gatlingGitExtension