diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-10 19:18:17 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-10 19:18:52 -0800 |
commit | 4970ee7de1ebd25617e6985699ea16c0f66948de (patch) | |
tree | ba819bab139778d9ea1272d2a432670d977d8a09 /core/src/test | |
parent | a687f3908c84d5149fe8ef32bfb73872d65675d2 (diff) | |
download | mill-4970ee7de1ebd25617e6985699ea16c0f66948de.tar.gz mill-4970ee7de1ebd25617e6985699ea16c0f66948de.tar.bz2 mill-4970ee7de1ebd25617e6985699ea16c0f66948de.zip |
`Core.compile()` now works in the build REPL
Diffstat (limited to 'core/src/test')
-rw-r--r-- | core/src/test/scala/mill/define/ApplicativeTests.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/test/scala/mill/define/ApplicativeTests.scala b/core/src/test/scala/mill/define/ApplicativeTests.scala index 29177a03..9991b9f0 100644 --- a/core/src/test/scala/mill/define/ApplicativeTests.scala +++ b/core/src/test/scala/mill/define/ApplicativeTests.scala @@ -9,11 +9,11 @@ import scala.language.experimental.macros object ApplicativeTests extends TestSuite { implicit def optionToOpt[T](o: Option[T]): Opt[T] = new Opt(o) - class Opt[T](val o: Option[T]) extends Applicative.Applyable[T] + class Opt[T](val self: Option[T]) extends Applicative.Applyable[Option, T] object Opt extends Applicative.Applyer[Opt, Option, Applicative.Id, String]{ val injectedCtx = "helloooo" - def underlying[A](v: Opt[A]) = v.o + def underlying[A](v: Opt[A]) = v.self def apply[T](t: T): Option[T] = macro Applicative.impl[Option, T, String] type O[+T] = Option[T] |