This commit is contained in:
Бондарев Иван 2018-05-03 20:15:57 +02:00
parent ad2de7696f
commit 0d34318378
2 changed files with 28 additions and 1 deletions

View file

@ -659,7 +659,8 @@ namespace CodeCompletion
if (sc.topScope == null) return false;
while (tmp != null)
{
if (tmp == sc.topScope) return true;
if (tmp == sc.topScope || sc.topScope != null && sc.topScope.topScope == tmp)
return true;
tmp = tmp.topScope;
}
return false;

View file

@ -0,0 +1,26 @@
unit unit1;
interface
type
t2 = class
private class i: integer;
end;
procedure p1;
implementation
type
t1 = class
private class i: integer;
end;
procedure p1;
begin
t1.i{@var t1.i: integer;@} := 1;
var j{@var j: integer;@} := t1.i;
var k{@var k: integer;@} := t2.i;
end;
end.