You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varconfig=ConfigurationFactory.ParseString("a = 1");varfallback=ConfigurationFactory.ParseString("b = 2");varconfigWithFallback=config.WithFallback(fallback);varanotherConfig=ConfigurationFactory.ParseString("c = 1");varmerged=anotherConfig.WithFallback(configWithFallback);// Here we loose value that was fallback for configWithFallbackmerged.GetInt("b").Should().Be(2);
When getting values from fallback config, need to get their fallbacks as well. Most likely this can be resolved with simple using Fallback.Root instead of Fallback.Value when building final config.
The text was updated successfully, but these errors were encountered:
Ooops... Sorry, @Aaronontheweb - just verified, this issue is a mistake. I had a typo in the test, and fixed it in issue description only after fixed the Config implementation, so thought that it started working because of my fix...
The following fails:
When getting values from fallback config, need to get their fallbacks as well. Most likely this can be resolved with simple using
Fallback.Root
instead ofFallback.Value
when building final config.The text was updated successfully, but these errors were encountered: