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
I would expect it to create a module named ModuleFoo with a constant Bar inside it.
Instead, ModuleFoo::Bar = 1 creates a constant ModuleFoo with value 1, discarding Bar completely.
Apart from the fact that the current behavior is a bug, as we already have a few other places where we can use a module name in front of something, I think it would be consistent to allow this for constants too.
The text was updated successfully, but these errors were encountered:
https://carc.in/#/r/3mjb
I would expect it to create a module named
ModuleFoo
with a constantBar
inside it.Instead,
ModuleFoo::Bar = 1
creates a constantModuleFoo
with value1
, discardingBar
completely.Apart from the fact that the current behavior is a bug, as we already have a few other places where we can use a module name in front of something, I think it would be consistent to allow this for constants too.
The text was updated successfully, but these errors were encountered: