Skip to content

Commit

Permalink
compiler/libec: (#1072) Fixed error conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
jerstlouis committed Apr 1, 2014
1 parent 5639160 commit 1dbaa78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/bootstrap/libec/bootstrap/pass0.c
Original file line number Diff line number Diff line change
Expand Up @@ -2244,7 +2244,7 @@ if((regClass->type == 1 || regClass->type == 6) || ((regClass->type == 5 || regC
ListAdd(specifiers, MkSpecifier(VOID));
else
{
if(regClass->type != 5 && regClass->type != 0)
if(regClass->type != 5 && regClass->type != 0 && (!propertyDef->symbol->_property || !propertyDef->symbol->_property->conversion))
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "set defined on type without storage for non-conversion property\n", (((void *)0))));
ListAdd(specifiers, MkSpecifierName(regClass->fullName));
}
Expand Down
2 changes: 1 addition & 1 deletion compiler/libec/src/pass0.ec
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ static void ProcessClass(ClassType classType, OldList definitions, Symbol symbol
ListAdd(specifiers, MkSpecifier(VOID));
else
{
if(regClass.type != noHeadClass && regClass.type != normalClass)
if(regClass.type != noHeadClass && regClass.type != normalClass && (!propertyDef.symbol._property || !propertyDef.symbol._property.conversion))
Compiler_Error($"set defined on type without storage for non-conversion property\n");
ListAdd(specifiers, MkSpecifierName(regClass.fullName));
}
Expand Down

0 comments on commit 1dbaa78

Please sign in to comment.