Make delegation work with the 'case' reserved word

Fixes #16956.