Browse Source

* interface parameter testing compatibility

carl 23 năm trước cách đây
mục cha
commit
24c3159de6
1 tập tin đã thay đổi với 24 bổ sung0 xóa
  1. 24 0
      tests/tbf/tb0127.pp

+ 24 - 0
tests/tbf/tb0127.pp

@@ -0,0 +1,24 @@
+{ Should give the same error as /tbf/tb0125.pp }
+type
+
+  tinterface = interface
+      procedure x;
+  end;
+  
+  tderivedinterface = interface(tinterface)
+      procedure x;
+  end;
+
+  procedure testintparam(var i  : tinterface);
+   begin
+   end;
+
+var
+ t1 : tderivedinterface;
+begin
+  testintparam(t1);
+end.
+  
+  
+  
+