FIX: ensures an anonymous shortcut fn can be used globally (PR #9605)

GitHub