Browse Source

* fixed test

Jonas Maebe 24 years ago
parent
commit
616c6ef979
1 changed files with 4 additions and 2 deletions
  1. 4 2
      tests/tbs/tb0356.pp

+ 4 - 2
tests/tbs/tb0356.pp

@@ -16,8 +16,10 @@ type
 
   function tc.test(var c: tc): boolean;
   begin
-    result := foreach(c.left,@test);
-    result := foreach(c.right,@test) or result;
+    { if you use @test, the compiler tries to get the address of the }
+    { function result instead of the address of the method (JM)       }
+    result := foreach(c.left,@tc.test);
+    result := foreach(c.right,@tc.test) or result;
   end;