fix: global definition shadowing a local one when using dot-notation (#4497)

closes #3079
2 files changed