caseclass macro working