[Parser] Corrected parsing class declaration constraints