This commit is contained in:
Бондарев Иван 2019-09-08 11:57:18 +02:00
parent e58b88269b
commit ec6d28ff5c
2 changed files with 9 additions and 0 deletions

View file

@ -5247,6 +5247,8 @@ namespace CodeCompletion
td.visit(this);
if (returned_scope is TypeScope)
template_params.Add(returned_scope as TypeScope);
else if (returned_scope is ProcScope)
template_params.Add(new ProcType(returned_scope as ProcScope));
else
{
returned_scope = ts;

View file

@ -0,0 +1,7 @@
function f1<T> := default(T);
function f2<T>: List<T> := nil;
begin
var f{@var f: function(x: integer): integer;@} := f1&<function(x: integer): integer>;
var ff{@var ff: List<function(x: integer): integer>;@} := f2&<function(x: integer): integer>;
end.