- Remove the requirement that only action function default parameters can accept a constant

expression that evaluates to the class 'None'. (I don't know why that was there to begin with.)

SVN r4210 (trunk)
This commit is contained in:
Randy Heit 2013-04-09 22:15:41 +00:00
parent 0a9a54fca8
commit ec6d522a29

View file

@ -2523,9 +2523,9 @@ FxExpression *FxClassTypeCast::Resolve(FCompileContext &ctx)
FName clsname = basex->EvalExpression(NULL).GetName(); FName clsname = basex->EvalExpression(NULL).GetName();
const PClass *cls = NULL; const PClass *cls = NULL;
if (clsname != NAME_None || !ctx.isconst) if (clsname != NAME_None)
{ {
cls= PClass::FindClass(clsname); cls = PClass::FindClass(clsname);
if (cls == NULL) if (cls == NULL)
{ {
if (!ctx.lax) if (!ctx.lax)