* fixed java.lang.String and Pascal string comparisons after operator

overloading rewrite (consider java_jlstring to be "stringlike")

git-svn-id: trunk@22127 -
This commit is contained in:
Jonas Maebe 2012-08-19 13:57:48 +00:00
parent b6db767ac4
commit cf4a2bd392
2 changed files with 5 additions and 2 deletions

View File

@ -424,7 +424,8 @@ implementation
is_chararray(def) or
is_widechararray(def) or
is_open_chararray(def) or
is_open_widechararray(def);
is_open_widechararray(def) or
(def=java_jlstring);
end;
function is_enum(def : tdef) : boolean;

View File

@ -477,7 +477,9 @@ implementation
(
is_implicit_pointer_object_type(rd) or
(rd.typ=pointerdef) or
(rt=niln)
(rt=niln) or
((ld=java_jlstring) and
is_stringlike(rd))
)
) and
(treetyp in identity_operators)