Browse Source

* fix test so it works with const. propagation and does throws the range check error at run time

git-svn-id: trunk@25960 -
florian 11 năm trước cách đây
mục cha
commit
5f167091c0
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      tests/test/ugeneric7.pp

+ 1 - 2
tests/test/ugeneric7.pp

@@ -6,6 +6,7 @@ unit ugeneric7;
 
     type
       generic tgeneric<t> = class
+        l : longint;
         field : t;
         procedure test;
       end;
@@ -14,8 +15,6 @@ unit ugeneric7;
 
 {$R-}
     procedure tgeneric.test;
-      var
-        l : longint;
       begin
         l:=1234;
 {$R+}