Throw an error on expressions like a.[b]