-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Using ${foo.bar} returns ${foo} if foo
is not a container
#364
Labels
bug
Something isn't working
Milestone
Comments
This looks like a bug in the test and in the code. def test_indirect_interpolation2() -> None:
d = {
"a": {"aa": 10},
"b": "${a.aa}",
"c": "${b}",
} |
feel free to send a PR. |
odelalleau
added a commit
to odelalleau/omegaconf
that referenced
this issue
Sep 9, 2020
odelalleau
added a commit
to odelalleau/omegaconf
that referenced
this issue
Sep 9, 2020
odelalleau
added a commit
to odelalleau/omegaconf
that referenced
this issue
Sep 9, 2020
omry
pushed a commit
that referenced
this issue
Sep 10, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The above code prints "0" while I would expect it to crash.
What puzzles me is that this behavior is actually tested right now:
This test doesn't make sense to me: accessing
cfg.c
should crash sinceb
is equal to 10 sob.aa
should be invalid. Am I missing something?The text was updated successfully, but these errors were encountered: