fpc/tests/webtbf/tw12109a.pp
Jonas Maebe 2929624ffc * accept overloaded operators that return any shortstring type when needing
a conversion to a shortstring type (so an operator := that returns a
    string[255] can be used to assign this type to a string[80]) (mantis
    #12109)
  * do not allow overloading := with a string[x<>255] as result type,
    because we want one such overload to satisfy all conversions (see
    previous point)

git-svn-id: trunk@12590 -
2009-01-24 15:12:19 +00:00

13 lines
114 B
ObjectPascal

{ %fail }
type
tr = record end;
ts2 = string[80];
operator :=(const r: tr) res: ts2;
begin
end;
begin
end.