From be441e786ead9cc251418856189751b3e51d325e Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Sat, 15 Sep 2018 03:49:33 +0200 Subject: Remove useless type parameters for {Test,}Evaluator (#416) * Remove useless type parameters for {Test,}Evaluator * Update Evaluator.scala --- scalalib/test/src/mill/scalalib/HelloWorldTests.scala | 8 ++++---- scalalib/test/src/mill/scalalib/scalafmt/ScalafmtTests.scala | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'scalalib/test/src') diff --git a/scalalib/test/src/mill/scalalib/HelloWorldTests.scala b/scalalib/test/src/mill/scalalib/HelloWorldTests.scala index 1a89a0e3..e1ac8bb7 100644 --- a/scalalib/test/src/mill/scalalib/HelloWorldTests.scala +++ b/scalalib/test/src/mill/scalalib/HelloWorldTests.scala @@ -269,9 +269,9 @@ object HelloWorldTests extends TestSuite { "Person$.class" ) - def workspaceTest[T, M <: TestUtil.BaseModule](m: M, resourcePath: Path = resourcePath) - (t: TestEvaluator[M] => T) - (implicit tp: TestPath): T = { + def workspaceTest[T](m: TestUtil.BaseModule, resourcePath: Path = resourcePath) + (t: TestEvaluator => T) + (implicit tp: TestPath): T = { val eval = new TestEvaluator(m) rm(m.millSourcePath) rm(eval.outPath) @@ -397,7 +397,7 @@ object HelloWorldTests extends TestSuite { ) } 'runCross - { - def cross(eval: TestEvaluator[_], v: String, expectedOut: String) { + def cross(eval: TestEvaluator, v: String, expectedOut: String) { val runResult = eval.outPath / "hello-mill" diff --git a/scalalib/test/src/mill/scalalib/scalafmt/ScalafmtTests.scala b/scalalib/test/src/mill/scalalib/scalafmt/ScalafmtTests.scala index fcff52a3..89d549ff 100644 --- a/scalalib/test/src/mill/scalalib/scalafmt/ScalafmtTests.scala +++ b/scalalib/test/src/mill/scalalib/scalafmt/ScalafmtTests.scala @@ -22,9 +22,9 @@ object ScalafmtTests extends TestSuite { val resourcePath = pwd / 'scalalib / 'test / 'resources / 'scalafmt - def workspaceTest[T, M <: TestUtil.BaseModule]( - m: M, - resourcePath: Path = resourcePath)(t: TestEvaluator[M] => T)( + def workspaceTest[T]( + m: TestUtil.BaseModule, + resourcePath: Path = resourcePath)(t: TestEvaluator => T)( implicit tp: TestPath): T = { val eval = new TestEvaluator(m) rm(m.millSourcePath) @@ -91,7 +91,7 @@ object ScalafmtTests extends TestSuite { case class FileInfo(content: String, modifyTime: Long, path: Path) - def getProjectFiles(m: ScalaModule, eval: TestEvaluator[_]) = { + def getProjectFiles(m: ScalaModule, eval: TestEvaluator) = { val Right((sources, _)) = eval.apply(m.sources) val Right((resources, _)) = eval.apply(m.resources) -- cgit v1.2.3