[enh] Issue 12931 - Make const, immutable, inout, and shared illegal as function attributes on the left-hand side of a function

https://issues.dlang.org/show_bug.cgi?id=12931

A try to detect misleading prefix attributes.
No, in that case, `t->ty == Tfunction` with `tpl != NULL`. So the deprecation message will be shown correctly.