You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type
t1 = class
function f0<T>(f: ()->T) := f();
function f1 := new Dictionary<byte, word>;
//Ошибка: Неизвестное имя 'f1'
property p[b: byte]: word read f0(()->f1.Get(b));
end;
begin end.
Если вызывать f1 как self.f1 - всё работает.
The text was updated successfully, but these errors were encountered:
type
t1 = class
f1 := new Dictionary<byte, word>;
function f0<T>(f: ()->T) := f();
//Ошибка: Неизвестное имя 'f1'
property p[b: byte]: word read f0(()->f1.Get(b));
end;
begin end.
SunSerega
changed the title
Не видит метод текущего класса из лямбды в read индексного свойства
Не видит содержимое текущего класса из лямбды в read индексного свойства
Apr 3, 2024
Если вызывать
f1
какself.f1
- всё работает.The text was updated successfully, but these errors were encountered: