1
0
Fork 0

diplomacy: bind resources to outer-most binding

This is probably the wrong thing to do, but it is expedient for now.
We need a better way to do cross-coreplex visibility.
This commit is contained in:
Wesley W. Terpstra 2017-11-20 17:21:10 -08:00
parent 44f99cd9a5
commit 3b299397db
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ object BindingScope
{
protected[diplomacy] var active: Option[BindingScope] = None
protected[diplomacy] def find(m: Option[LazyModule] = LazyModule.scope): Option[BindingScope] = m.flatMap {
case s: BindingScope => Some(s)
case x: BindingScope => find(x.parent).orElse(Some(x))
case x => find(x.parent)
}
}