mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-03 01:51:33 +01:00
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 -
13 lines
114 B
ObjectPascal
13 lines
114 B
ObjectPascal
{ %fail }
|
|
|
|
type
|
|
tr = record end;
|
|
ts2 = string[80];
|
|
|
|
operator :=(const r: tr) res: ts2;
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
end.
|