pascalabcnet/TestSuite/ExplicitInterface4.pas
Mikhalkovich Stanislav 4bb828705d fix #2163
Matr из массивов в PABCSystem.pas

WPFObjects - fix hide text
2019-12-21 23:25:39 +03:00

31 lines
349 B
ObjectPascal

var s: integer;
type
IA = interface
procedure P();
end;
A = class(IA)
public
{procedure P();
begin
end;}
procedure IA.P();
begin
s := 1;
end;
end;
B = class(A, IA)
public
procedure IA.P();
begin
s := 2;
end;
end;
begin
var b1 := new B;
IA(b1).P;
Assert(s=2)
end.