This is no explicit problem in Vim, however Neovim diverged in this behaviour from Vim and requires the dict attribute to be present before accessing the self attribute. See neovim/neovim#5763