diff --git a/src/main/scala/diplomacy/LazyModule.scala b/src/main/scala/diplomacy/LazyModule.scala index f70ff350..bafcb56c 100644 --- a/src/main/scala/diplomacy/LazyModule.scala +++ b/src/main/scala/diplomacy/LazyModule.scala @@ -141,7 +141,7 @@ object LazyModule protected[diplomacy] var scope: Option[LazyModule] = None private var index = 0 - def apply[T <: LazyModule](bc: T)(implicit sourceInfo: SourceInfo): T = { + def apply[T <: LazyModule](bc: T)(implicit valName: ValName, sourceInfo: SourceInfo): T = { // Make sure the user put LazyModule around modules in the correct order // If this require fails, probably some grandchild was missing a LazyModule // ... or you applied LazyModule twice