|
@@ -901,11 +901,7 @@ implementation
|
|
|
if is_objectpascal_helper(astruct) then
|
|
|
if is_classdef then
|
|
|
{ class constructors are not allowed in class helpers }
|
|
|
- Message(parser_e_no_class_constructor_in_helpers)
|
|
|
- else if is_record(tobjectdef(astruct).extendeddef) then
|
|
|
- { as long as constructors aren't allowed in records they
|
|
|
- aren't allowed in helpers either }
|
|
|
- Message(parser_e_no_constructor_in_records);
|
|
|
+ Message(parser_e_no_class_constructor_in_helpers);
|
|
|
|
|
|
{ only 1 class constructor is allowed }
|
|
|
if is_classdef and (oo_has_class_constructor in astruct.objectoptions) then
|