This commit is contained in:
parent
e58b88269b
commit
ec6d28ff5c
|
|
@ -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;
|
||||
|
|
|
|||
7
TestSuite/intellisense_tests/generics18.pas
Normal file
7
TestSuite/intellisense_tests/generics18.pas
Normal 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.
|
||||
Loading…
Reference in a new issue