浏览代码

+ support properties in Java classes & interfaces

git-svn-id: branches/jvmbackend@18486 -
Jonas Maebe 14 年之前
父节点
当前提交
11fbd8d9a4
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      compiler/pdecobj.pas

+ 3 - 2
compiler/pdecobj.pas

@@ -152,8 +152,9 @@ implementation
         p : tpropertysym;
         p : tpropertysym;
       begin
       begin
         { check for a class, record or helper }
         { check for a class, record or helper }
-        if not((is_class_or_interface_or_dispinterface(current_structdef) or is_record(current_structdef) or is_objectpascal_helper(current_structdef)) or
-           (not(m_tp7 in current_settings.modeswitches) and (is_object(current_structdef)))) then
+        if not((is_class_or_interface_or_dispinterface(current_structdef) or is_record(current_structdef) or
+                is_objectpascal_helper(current_structdef) or is_java_class_or_interface(current_structdef)) or
+               (not(m_tp7 in current_settings.modeswitches) and (is_object(current_structdef)))) then
           Message(parser_e_syntax_error);
           Message(parser_e_syntax_error);
         consume(_PROPERTY);
         consume(_PROPERTY);
         p:=read_property_dec(is_classproperty,current_structdef);
         p:=read_property_dec(is_classproperty,current_structdef);