Fix Issue 12598 - Emit better diagnostics when type is found where an lvalue was expected.
Merge pull request #3470 from AndrejMitrovic/Fix12598

Issue 12598 - Emit better diagnostics when type is found where an lvalue was expected