mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 10:00:31 +02:00
* 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:
parent
b6db767ac4
commit
cf4a2bd392
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user