This commit is contained in:
parent
f96378f7d2
commit
a1160f993d
|
|
@ -933,7 +933,7 @@ namespace CodeCompletion
|
|||
if (string.Compare(ss.si.name, name, !CodeCompletionController.CurrentParser.LanguageInformation.CaseSensitive) == 0)
|
||||
if (ss.loc != null && loc != null && check_for_def && cur_line != -1 && cur_col != -1)
|
||||
{
|
||||
if (string.Compare(ss.loc.doc.file_name, loc.doc.file_name, true) == 0 && this != ss)
|
||||
if (string.Compare(ss.loc.doc.file_name, loc.doc.file_name, true) == 0 && this != ss && ss.topScope != this)
|
||||
{
|
||||
if (IsAfterDefinition(ss.loc.begin_line_num, ss.loc.begin_column_num))
|
||||
{
|
||||
|
|
|
|||
21
TestSuite/intellisense_tests/class4.pas
Normal file
21
TestSuite/intellisense_tests/class4.pas
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
type
|
||||
T = class
|
||||
public constructor;
|
||||
begin
|
||||
p{@procedure T.p(a: integer);@}(0);
|
||||
p2{@@}();
|
||||
end;
|
||||
|
||||
public procedure p(a: integer);
|
||||
begin
|
||||
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure p2;
|
||||
begin
|
||||
|
||||
end;
|
||||
begin
|
||||
|
||||
end.
|
||||
Loading…
Reference in a new issue