fix #1567
This commit is contained in:
parent
b417531af6
commit
eed877dd73
|
|
@ -817,7 +817,7 @@ namespace CodeCompletion
|
|||
returned_scope = new ElementScope(ts);
|
||||
|
||||
}
|
||||
else if ((returned_scope != null && returned_scope is ElementScope && (returned_scope as ElementScope).sc is CompiledScope) && _dot_node.left is method_call)
|
||||
else if ((returned_scope != null && returned_scope is ElementScope && (returned_scope as ElementScope).sc is CompiledScope && ((returned_scope as ElementScope).sc as CompiledScope).IsDelegate) && _dot_node.left is method_call)
|
||||
{
|
||||
ProcScope invoke_meth = ((returned_scope as ElementScope).sc as CompiledScope).FindNameOnlyInThisType("Invoke") as ProcScope;
|
||||
if (invoke_meth != null)
|
||||
|
|
|
|||
4
TestSuite/intellisense_tests/invoke.pas
Normal file
4
TestSuite/intellisense_tests/invoke.pas
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
begin
|
||||
var t := typeof(object);
|
||||
var o := t.GetConstructor(System.Type.EmptyTypes).Invoke{@function ConstructorInfo.Invoke(parameters: array of Object): System.Object;@}(new object[0]);
|
||||
end.
|
||||
Loading…
Reference in a new issue