mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 23:21:57 +02:00
* interface parameter testing compatibility
This commit is contained in:
parent
fbc75980be
commit
24c3159de6
24
tests/tbf/tb0127.pp
Normal file
24
tests/tbf/tb0127.pp
Normal file
@ -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.
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user