mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 20:08:12 +02:00
* fixed test, using := operator as type cast is now much stricter
git-svn-id: trunk@1386 -
This commit is contained in:
parent
71b90d4d00
commit
c7cfe4976e
@ -9,6 +9,14 @@ Type vector=array[1..2] of double;
|
||||
end;
|
||||
|
||||
|
||||
operator := (x:shortint) r:pair;
|
||||
var i:longint;
|
||||
Begin
|
||||
r.v1:=x;
|
||||
for i:=1 to 2 do r.v2[i]:=0;
|
||||
End;
|
||||
|
||||
|
||||
operator := (x:double) r:pair;
|
||||
var i:longint;
|
||||
Begin
|
||||
|
Loading…
Reference in New Issue
Block a user