fix property enforcement

Required by: https://github.com/D-Programming-Language/dmd/pull/2305