config: when modifying Parameters, subordinate lookups use top

This commit is contained in:
Wesley W. Terpstra committed 2016-11-23 20:44:45 -08:00
1 parent 566cc9e60b
commit 9f1c668c4f
4 files changed
+22 -21

No files matched your search

+2 -1
View File
@@ -6,7 +6,8 @@ class CDEMatchError() extends Exception {
}
abstract class View {
final def apply[T](pname: Field[T]): T = find(pname, this).asInstanceOf[T]
final def apply[T](pname: Field[T]): T = apply(pname, this)
final def apply[T](pname: Field[T], site: View): T = find(pname, site).asInstanceOf[T]
protected[config] def find(pname: Any, site: View): Any
}