зеркало из https://github.com/mozilla/pjs.git
mozilla-central followup for bug 449075 - bases.type intead of bases to match the new schema
This commit is contained in:
Родитель
d0c98e7870
Коммит
5ec62fe9ec
|
@ -2,7 +2,7 @@ function process_type(c)
|
|||
{
|
||||
if ((c.kind == 'class' || c.kind == 'struct') && !c.isIncomplete) {
|
||||
for each (let base in c.bases)
|
||||
if (isFinal(base))
|
||||
if (isFinal(base.type))
|
||||
error("Class '" + c.name + "' derives from final class '" + base.name + "'.", c.loc);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ function isStack(c)
|
|||
return true;
|
||||
|
||||
for each (let base in c.bases)
|
||||
if (isStack(base))
|
||||
if (isStack(base.type))
|
||||
return true;
|
||||
|
||||
for each (let member in c.members) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче