Given the following config files:
# foo/bar.yaml
_target_: ChildClass
a: 0
b: 1
# config.yaml
defaults:
- foo: bar.yaml
_target_: MainClass
c: 2
d: ${foo.a} # this line doesn't work
I would like to construct an object of type MainClass, which takes an object of type ChildClass.
One of the arguments of ChildClass is also used in the constructor of MainClass.
How can I read the child property a
using argument interpolation?