Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Явная реализация свойства интерфейса старого стиля не работает #2607

Closed
SunSerega opened this issue Jan 9, 2022 · 1 comment

Comments

@SunSerega
Copy link
Contributor

SunSerega commented Jan 9, 2022

type
  I1 = interface
    property p1: byte read;
  end;
  //Ошибка: Класс t1 не реализует метод get_p1:byte интерфейса I1
  t1 = class(I1)
    public b: byte;
    public property I1.p1: byte read b;
  end;
  
begin end.

Если записать в новом стиле - не воспроизводится:

type
  I1 = interface
    property p1: byte read;
  end;
  t1 = class(I1)
    public b: byte;
    public property I1.p1: byte read byte(b);
  end;
  
begin end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants