git-svn-id: svn://10.0.0.236/trunk@126542 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com 2002-08-06 23:02:42 +00:00
parent e85655fa4f
commit 3fd968f94e

View File

@ -122,13 +122,14 @@ namespace MetaData {
CompoundAttribute *a = Attribute::toCompoundAttribute(attr);
if (a->dynamic || a->prototype)
reportError(Exception::definitionError, "Illegal attribute", p->pos);
MemberModifier memberMod = a->memberMod;
Attribute::MemberModifier memberMod = a->memberMod;
if ((env->getTopFrame()->kind == Frame::Class)
&& (memberMod == Attribute::NoModifier))
memberMod == Attribute::Final;
memberMod = Attribute::Final;
switch (memberMod) {
case Attribute::NoModifier:
case Attribute::Static:
break;
}
}