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: Не пытается подставить тип в шаблон подпрограммы, если сразу создавать из этой подпрограммы делегат #3079

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

Comments

@SunSerega
Copy link
Contributor

Код из #2976, но вместо процедуры p1 - функция f1:

procedure p0(p: byte->word) := exit;
function f1<T>(o: T) := word(1);

begin
  // OK
  p0(f1&<byte>);
  //Ошибка: Число типов-параметров в спецификации обобщённой подпрограммы f1 должно быть равно 1
  p0(f1);
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

1 participant