pascalabcnet/TestSuite/explicitinterface13.pas
Ivan Bondarev a1aae548c6 #2866
2023-11-01 19:14:25 +01:00

12 lines
339 B
ObjectPascal
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

type
i1 = interface
procedure p1;
end;
//Ошибка: Функция класса c1, реализующая метод p1 интерфейса i1, должна быть нестатической с уровнем доступа public
c1 = class(i1)
procedure i1.p1 := exit;
end;
begin
var obj := new c1;
end.