1
0
Fork 0

diplomacy: LazyModule factory uses ValName (#1159)

* diplomacy: LazyModule factory uses ValName
This commit is contained in:
Henry Cook 2017-12-18 15:40:30 -08:00 committed by GitHub
parent 09160d0cd5
commit a31ba2ea2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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