Browse Source

* interface parameter testing compatibility

carl 23 years ago
parent
commit
24c3159de6
1 changed files with 24 additions and 0 deletions
  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.
+  
+  
+  
+