Explorar o código

* support default properties for Java classes

git-svn-id: branches/jvmbackend@18513 -
Jonas Maebe %!s(int64=14) %!d(string=hai) anos
pai
achega
50dd6489c4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      compiler/pexpr.pas

+ 3 - 1
compiler/pexpr.pas

@@ -1943,7 +1943,9 @@ implementation
                _LECKKLAMMER:
                   begin
                     if is_class_or_interface_or_object(p1.resultdef) or
-                      is_dispinterface(p1.resultdef) or is_record(p1.resultdef) then
+                       is_dispinterface(p1.resultdef) or
+                       is_record(p1.resultdef) or
+                       is_javaclass(p1.resultdef) then
                       begin
                         { default property }
                         protsym:=search_default_property(tabstractrecorddef(p1.resultdef));