fix #1116
This commit is contained in:
parent
21463c712c
commit
06d2676e0a
|
|
@ -4099,7 +4099,7 @@ namespace CodeCompletion
|
||||||
return true;
|
return true;
|
||||||
if (this.IsGenericParameter && ts.IsGenericParameter && this.Name == ts.Name)
|
if (this.IsGenericParameter && ts.IsGenericParameter && this.Name == ts.Name)
|
||||||
return true;
|
return true;
|
||||||
if (ts is TemplateParameterScope)
|
if (ts is TemplateParameterScope || ts.IsGenericParameter)
|
||||||
return true;
|
return true;
|
||||||
TypeScope tmp = this.baseScope;
|
TypeScope tmp = this.baseScope;
|
||||||
while (tmp != null)
|
while (tmp != null)
|
||||||
|
|
|
||||||
9
TestSuite/intellisense_tests/tuple5.pas
Normal file
9
TestSuite/intellisense_tests/tuple5.pas
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
type
|
||||||
|
TClass = class
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
var x{@var x: (integer,List<byte>);@} := (0, new List<byte>());
|
||||||
|
var y{@var y: (integer,TClass);@} := (0, new TClass());
|
||||||
|
writeln(y.Item2{@property Tuple<>.Item2: TClass; readonly;@});
|
||||||
|
end.
|
||||||
Loading…
Reference in a new issue