This commit is contained in:
Бондарев Иван 2018-12-09 11:28:40 +01:00
parent b417531af6
commit eed877dd73
2 changed files with 5 additions and 1 deletions

View file

@ -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)

View 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.