diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-07 21:10:06 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-07 21:11:03 -0800 |
commit | ee080e63971399ceb22fd8f059a97e956d9f0dcb (patch) | |
tree | aa4ce5a9b6647835fbdae11266621f13d24dcfcb /core/src/main/scala/forge/define/Applicative.scala | |
parent | ca02aef2c98079c695fa616c75ab05a693c9d512 (diff) | |
download | mill-ee080e63971399ceb22fd8f059a97e956d9f0dcb.tar.gz mill-ee080e63971399ceb22fd8f059a97e956d9f0dcb.tar.bz2 mill-ee080e63971399ceb22fd8f059a97e956d9f0dcb.zip |
- Allow main methods to return `Target[T]`s, so they can then be evaled by an external `Evaluator` that has the `Discovered` mapping available
- Basic integration tests for `T.command` entrypoint running in the `JavaCompilerJarTests` suite
Diffstat (limited to 'core/src/main/scala/forge/define/Applicative.scala')
-rw-r--r-- | core/src/main/scala/forge/define/Applicative.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/forge/define/Applicative.scala b/core/src/main/scala/forge/define/Applicative.scala index 6a4d1d0c..dfa0cf84 100644 --- a/core/src/main/scala/forge/define/Applicative.scala +++ b/core/src/main/scala/forge/define/Applicative.scala @@ -7,7 +7,7 @@ import scala.collection.mutable import scala.reflect.macros.blackbox.Context object Applicative { - trait Applyable[T]{ + trait Applyable[+T]{ @compileTimeOnly("Target#apply() can only be used with a T{...} block") def apply(): T = ??? } |