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

Компилятор позволяет явно не реализовывать одноименные свойства оставшихся интерфейсов, если одно из свойств реализовано #1355

Closed
EmilyGraceSeville7cf opened this issue Oct 9, 2018 · 2 comments

Comments

@EmilyGraceSeville7cf
Copy link

EmilyGraceSeville7cf commented Oct 9, 2018

type
  I1 = interface
    property X: byte read;
  end;
  
  I2 = interface
    property X: byte read;
  end;
  
  T = class(I1, I2)
  public
    property I1.X: byte read 0; // I2.X не реализовано, но код компилируется успешно.
    property I1.X: byte read 0;
  end;
  
begin
  var x := new T();
  Writeln(I1(x).X);
  Writeln(I2(x).X);
end.
@miks1965
Copy link
Contributor

miks1965 commented Oct 9, 2018

Да, это ляп, - спасибо

@miks1965
Copy link
Contributor

miks1965 commented Jun 9, 2019

Ляп

@miks1965 miks1965 reopened this Jun 9, 2019
@EmilyGraceSeville7cf EmilyGraceSeville7cf changed the title Компилятор позволяет явно не реализовывать одноименные свойства оставшихся интерфейсов, если одно из свойств реализовано ... Jul 6, 2019
@miks1965 miks1965 changed the title ... Компилятор позволяет явно не реализовывать одноименные свойства оставшихся интерфейсов, если одно из свойств реализовано Jul 6, 2019
@miks1965 miks1965 closed this as completed Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants