def checkType() -> bool:
    if ((typ == 'any') or (typ == 'identifier')):
        return True
    if (declTyp == 'templateParam'):
        return True
    if (declTyp == 'functionParam'):
        if ((typ == 'var') or (typ == 'member')):
            return True
    objtypes = self.objtypes_for_role(typ)
    if objtypes:
        return (declTyp in objtypes)
    print(('Type is %s (originally: %s), declType is %s' % (typ, origTyp, declTyp)))
    assert False
def checkType() -> bool:
    if ((typ == 'any') or (typ == 'identifier')):
        return True
    if (declTyp == 'templateParam'):
        return True
    if (declTyp == 'functionParam'):
        if ((typ == 'var') or (typ == 'member')):
            return True
    objtypes = self.objtypes_for_role(typ)
    if objtypes:
        return (declTyp in objtypes)
    print(('Type is %s (originally: %s), declType is %s' % (typ, origTyp, declTyp)))
    assert False