fix #1579
This commit is contained in:
parent
318774fbd6
commit
b7df442554
|
|
@ -841,7 +841,7 @@ namespace CodeCompletion
|
|||
returned_scope = CheckForAccess(left_scope as TypeScope, returned_scope as ElementScope);
|
||||
return;
|
||||
}
|
||||
if (returned_scope != null && returned_scope is ProcScope)
|
||||
if (returned_scope != null && returned_scope is ProcScope && !((returned_scope as ProcScope).IsStatic && tmp_tn is ElementScope))
|
||||
{
|
||||
if ((returned_scope as ProcScope).return_type == null)
|
||||
{
|
||||
|
|
|
|||
4
TestSuite/intellisense_tests/extensionmethods9.pas
Normal file
4
TestSuite/intellisense_tests/extensionmethods9.pas
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
begin
|
||||
var ch: char;
|
||||
ch.IsDigit{@(расширение) function char.IsDigit(): boolean;@};
|
||||
end.
|
||||
Loading…
Reference in a new issue