fix property enforcement

Required by: D-Programming-Language/dmd#2305