compiler: fix accidentally committed code in r20285

git-svn-id: trunk@20347 -
This commit is contained in:
paul 2012-02-14 00:25:29 +00:00
parent b19b8badf9
commit 4d863aff03

View File

@ -652,8 +652,8 @@ implementation
end;
_CONSTRUCTOR :
begin
//if not is_classdef then
// Message(parser_e_no_constructor_in_records);
if not is_classdef then
Message(parser_e_no_constructor_in_records);
if not is_classdef and (current_structdef.symtable.currentvisibility <> vis_public) then
Message(parser_w_constructor_should_be_public);