From 5daaadf78299bb4e6eff06d7e73ce4615bbb951a Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Mon, 28 Oct 2024 20:00:59 +0900 Subject: [PATCH 1/2] Update Cacher.scala --- moduledefs/src-2/Cacher.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moduledefs/src-2/Cacher.scala b/moduledefs/src-2/Cacher.scala index 1966a71..f0ce9ab 100644 --- a/moduledefs/src-2/Cacher.scala +++ b/moduledefs/src-2/Cacher.scala @@ -26,7 +26,7 @@ object Cacher { if (ownerIsCacherClass && owner.isMethod) q"this.cachedTarget[${weakTypeTag[R]}]($t)" else c.abort( c.enclosingPosition, - "Task{} members must be defs defined in a Cacher class/trait/object body" + "Task{} members must be defs defined in a Module class/trait/object body" ) } } From acdc53565697abcb0244d59bd1b36e117c52bedc Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Mon, 28 Oct 2024 20:02:01 +0900 Subject: [PATCH 2/2] Update Cacher.scala --- moduledefs/src-3/Cacher.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moduledefs/src-3/Cacher.scala b/moduledefs/src-3/Cacher.scala index 50f51d9..b253764 100644 --- a/moduledefs/src-3/Cacher.scala +++ b/moduledefs/src-3/Cacher.scala @@ -51,7 +51,7 @@ object Cacher { val thisSel = This(owner.owner).asExprOf[Cacher] '{ $thisSel.cachedTarget[T](${ t })(using $enclosingCtx) } } else report.errorAndAbort( - "Task{} members must be defs defined in a Cacher class/trait/object body", + "Task{} members must be defs defined in a Module class/trait/object body", Position.ofMacroExpansion ) }