fix #1092
This commit is contained in:
parent
96e1454511
commit
cdbda79262
|
|
@ -5052,7 +5052,10 @@ namespace CodeCompletion
|
|||
}
|
||||
|
||||
cur_scope = tmp;
|
||||
ps.return_type = new UnknownScope(new SymInfo("",SymbolKind.Class,""));// returned_scope as TypeScope;
|
||||
if (_function_lambda_definition.usedkeyword == 2)
|
||||
ps.return_type = null;
|
||||
else
|
||||
ps.return_type = new UnknownScope(new SymInfo("",SymbolKind.Class,""));// returned_scope as TypeScope;
|
||||
returned_scope = new ProcType(ps);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1804,6 +1804,8 @@ namespace CodeCompletion
|
|||
return true;
|
||||
if (ts is CompiledScope)
|
||||
return ts.IsConvertable(this);
|
||||
if (ts is TemplateParameterScope || ts.IsGenericParameter)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
6
TestSuite/intellisense_tests/generics14.pas
Normal file
6
TestSuite/intellisense_tests/generics14.pas
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
procedure F() := exit;
|
||||
|
||||
begin
|
||||
var a{@var a: (procedure,procedure);@} := Rec(procedure() -> exit, procedure() -> exit); // (T1, T2)
|
||||
var b{@var b: (procedure,procedure);@} := Rec(F, F);
|
||||
end.
|
||||
Loading…
Reference in a new issue