diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-04 14:48:23 -0700 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-04 14:48:23 -0700 |
commit | 7360d060f8da122cf233f6b761cc49044574d2fc (patch) | |
tree | 985710c39c1bc8fb05a0701899de6c5e426a8e1d /scalaplugin/src/test | |
parent | bc6eb79f74a30aef2eb874eb7ba3c443c49e7554 (diff) | |
download | mill-7360d060f8da122cf233f6b761cc49044574d2fc.tar.gz mill-7360d060f8da122cf233f6b761cc49044574d2fc.tar.bz2 mill-7360d060f8da122cf233f6b761cc49044574d2fc.zip |
Collapse `LocalDef` into `T{...}` macro, make it more flexible so it only caches `def`s (and complains about `val`s) if it's defined top-level in a class/trait/object, for easy overriding.
If it's in some helper function somewhere, overriding doesn't matter, and it's up to the user to figure out how to construct a target graph without redundancy
Diffstat (limited to 'scalaplugin/src/test')
-rw-r--r-- | scalaplugin/src/test/scala/forge/scalaplugin/MetacircularTests.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scalaplugin/src/test/scala/forge/scalaplugin/MetacircularTests.scala b/scalaplugin/src/test/scala/forge/scalaplugin/MetacircularTests.scala index 54a21607..285d4171 100644 --- a/scalaplugin/src/test/scala/forge/scalaplugin/MetacircularTests.scala +++ b/scalaplugin/src/test/scala/forge/scalaplugin/MetacircularTests.scala @@ -36,7 +36,7 @@ object MetacircularTests extends TestSuite{ override def depClasspath = T{ Seq(Core.compiled()) } override def ivyDeps = T{ Core.ivyDeps } - val basePath = T{ pwd / 'scalaplugin } + def basePath = T{ pwd / 'scalaplugin } override def sources = T{ PathRef(pwd/'scalaplugin/'src/'main/'scala) } override def resources = T{ sources } } |