issue 5310
Merge pull request #1163 from andralex/5310

Fix Issue 5310 - Variant == const(Variant) doesn't compile