mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 13:49:11 +02:00
+ testing operator overloading
This commit is contained in:
parent
551caf65d2
commit
6e42e8acf0
10
tests/tbs/tb0441.pp
Normal file
10
tests/tbs/tb0441.pp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
program Test;
|
||||||
|
operator :=(x:LongInt)RESULT:ShortString;
|
||||||
|
begin
|
||||||
|
Val(RESULT,x);
|
||||||
|
end;
|
||||||
|
var
|
||||||
|
s:ShortString;
|
||||||
|
begin
|
||||||
|
s:=12;
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user