This commit is contained in:
parent
5acf2515ba
commit
ed9defc566
|
|
@ -2921,6 +2921,13 @@ namespace CodeCompletion
|
|||
}
|
||||
|
||||
}
|
||||
else if (returned_scope is ProcScope)
|
||||
{
|
||||
method_call mc = new method_call(_dot_node, new expression_list());
|
||||
search_all = true;
|
||||
mc.visit(this);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (returned_scope != null && returned_scope is ProcScope && (returned_scope as ProcScope).return_type != null)
|
||||
|
|
|
|||
|
|
@ -902,6 +902,12 @@ namespace CodeCompletion
|
|||
return;
|
||||
}
|
||||
}
|
||||
else if (ps != null)
|
||||
{
|
||||
method_call mc = new method_call(_dot_node, new expression_list());
|
||||
mc.visit(this);
|
||||
return;
|
||||
}
|
||||
if (tmp_tn is ElementScope && stv != null)
|
||||
{
|
||||
List<ProcScope> procs = stv.entry_scope.GetExtensionMethods((_dot_node.right as ident).name, (tmp_tn as ElementScope).sc as TypeScope);
|
||||
|
|
|
|||
3
TestSuite/intellisense_tests/extensionmethods12.pas
Normal file
3
TestSuite/intellisense_tests/extensionmethods12.pas
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
begin
|
||||
var a{@var a: sequence of integer;@} := ArrRandom(7, 10, 99).Reverse.Println();
|
||||
end.
|
||||
Loading…
Reference in a new issue