}
else {
//TODO: all this can be removed once the backend
// implements full support for the new class
// alias stuff
ProducedType at = alias.getExtendedType();
ParameterList cpl = c.getParameterList();
ParameterList apl = alias.getParameterList();
if (cpl!=null && apl!=null) {
int cps = cpl.getParameters().size();
int aps = apl.getParameters().size();
if (cps!=aps) {
that.getParameterList()
.addUnsupportedError("wrong number of initializer parameters declared by class alias: " +
alias.getName());
}
for (int i=0; i<cps && i<aps; i++) {
Parameter ap = apl.getParameters().get(i);
Parameter cp = cpl.getParameters().get(i);
ProducedType pt = at.getTypedParameter(cp).getType();
//TODO: properly check type of functional parameters!!
checkAssignableWithWarning(ap.getType(), pt, that, "alias parameter " +
ap.getName() + " must be assignable to corresponding class parameter " +
cp.getName());
}