Browse Source

compiler: fix accidentally committed code in r20285

git-svn-id: trunk@20347 -
paul 13 years ago
parent
commit
4d863aff03
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/ptype.pas

+ 2 - 2
compiler/ptype.pas

@@ -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);