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

Re: Не может выбрать перегрузку для создания делегата, когда фактически только 1 перегрузка подходит #3074

Open
SunSerega opened this issue Apr 1, 2024 · 2 comments

Comments

@SunSerega
Copy link
Contributor

#2899 можно было бы просто переоткрыть... Ну, вот вам дубль той issue:

type
  d<T> = procedure(v: T);
  
procedure p0<T>(p: d<T>) := exit;

procedure p1(v: byte) := exit;
procedure p1(a,b,c: word) := exit;

begin
  // OK
  p0&<byte>(p1);
  //Ошибка: Обобщённая функция p0 не может быть вызвана с данным набором фактических параметров
  p0(p1);
end.
@ibond84
Copy link
Contributor

ibond84 commented Apr 14, 2024

можно было бы просто переоткрыть...

Нет

@ibond84
Copy link
Contributor

ibond84 commented Apr 14, 2024

Пример в issue должен соответствовать issue. Какие-то новые примеры в комментах игнорируются. Надо писать новый issue..

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