1 function process_type(c)
3 if ((c.kind == 'class' || c.kind == 'struct') && !c.isIncomplete) {
4 for each (let base in c.bases)
5 if (isFinal(base.type))
6 error("Class '" + c.name + "' derives from final class '" + base.name + "'.", c.loc);
13 throw Error("Can't get final property for incomplete type.");
15 return hasAttribute(c, 'NS_final');