Expected behavior
Since the node cfg.hydra has a structured object_type (i.e. HConf), the field node cfg.hydra.mode should have ref type RunMode (in keeping with the type annotation on the HConf dataclass).
Additional context
OmegaConf version: latest commit on master branch, 0981fa9
Describe the bug Merging does not preserve target
ref_type
when source field type hint is a dict annotation. This causes Hydra bug https://github.com/facebookresearch/hydra/issues/2348.To Reproduce
Expected behavior Since the node
cfg.hydra
has a structuredobject_type
(i.e.HConf
), the field nodecfg.hydra.mode
should have ref typeRunMode
(in keeping with the type annotation on theHConf
dataclass).Additional context
master
branch, 0981fa9