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

Не проверяет реализованность метода шаблонного abstract partial предка #3077

Open
SunSerega opened this issue Apr 3, 2024 · 0 comments

Comments

@SunSerega
Copy link
Contributor

type
  
  // Обязательно базовый класс - шаблонный
  t1<T> = abstract partial class end;
  t2 = sealed partial class(t1<byte>) end;
  
  // Обязательно абстрактный метод во втором теле partial-класса
  t1<T> = abstract partial class
    procedure p1; abstract;
  end;
  
  // Не важно, указано ли здесь наследование
  t2 = sealed partial class //(t1<byte>)
    
  end;
  
begin
  new t2;
end.

При выполнении:

Ошибка времени выполнения: System.TypeLoadException: Отсутствует реализация метода "p1" в типе "0.t2" из сборки "0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null".
Стек:
   в 0.Program.$Main()
   в 0.Program.Main()
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

1 participant