Explorar o código

* fixed test, using := operator as type cast is now much stricter

git-svn-id: trunk@1386 -
florian %!s(int64=20) %!d(string=hai) anos
pai
achega
c7cfe4976e
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      tests/webtbs/tw2976.pp

+ 8 - 0
tests/webtbs/tw2976.pp

@@ -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