eolian: require specification of either get or set in property impls

This commit is contained in:
Daniel Kolesa 2017-01-02 14:02:44 +01:00
parent 2cb621fe4a
commit 692d445dcf
1 changed files with 2 additions and 0 deletions

View File

@ -1593,6 +1593,8 @@ propbeg:
goto propend;
}
propend:
if (!has_get && !has_set)
eo_lexer_syntax_error(ls, "property implements need at least get or set specified");
check_next(ls, '}');
}
else