diff --git a/CodeCompletion/ExpressionVisitor.cs b/CodeCompletion/ExpressionVisitor.cs index 61f0d0c09..c7caf9ba9 100644 --- a/CodeCompletion/ExpressionVisitor.cs +++ b/CodeCompletion/ExpressionVisitor.cs @@ -936,6 +936,10 @@ namespace CodeCompletion { returned_scopes[i] = null; } + else if (left_scope is TypeScope && returned_scopes[i] is ProcScope && !(returned_scopes[i] as ProcScope).IsStatic && !(returned_scopes[i] as ProcScope).IsConstructor()) + { + returned_scopes[i] = null; + } } returned_scopes.RemoveAll(x => x == null); diff --git a/TestSuite/intellisense_tests/staticmethod1.pas b/TestSuite/intellisense_tests/staticmethod1.pas new file mode 100644 index 000000000..d1fecb612 --- /dev/null +++ b/TestSuite/intellisense_tests/staticmethod1.pas @@ -0,0 +1,3 @@ +begin + System.Convert.ToString{@static function Convert.ToString(value: Object): string;@}(); +end. \ No newline at end of file