bug fix #765
This commit is contained in:
parent
6937285974
commit
9ec5782f4c
|
|
@ -5080,7 +5080,7 @@ namespace CodeCompletion
|
|||
}
|
||||
else
|
||||
{
|
||||
if (this.instances[i].instances != null && this.instances[i].instances.Count > 0 && gen_args[i].elementType != null)
|
||||
if (this.instances[i].instances != null && this.instances[i].instances.Count > 0 && i < gen_args.Count && gen_args[i].elementType != null)
|
||||
{
|
||||
List<TypeScope> lst = new List<TypeScope>();
|
||||
lst.Add(gen_args[i].elementType);
|
||||
|
|
|
|||
11
TestSuite/intellisense_tests/generics5.pas
Normal file
11
TestSuite/intellisense_tests/generics5.pas
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
function f1<T>(self: sequence of T): (sequence of byte, sequence of word);
|
||||
begin
|
||||
Result := (
|
||||
Seq(byte(0)),
|
||||
Seq(word(0))
|
||||
);
|
||||
end;
|
||||
|
||||
begin
|
||||
var a{@var a: (IEnumerable<byte>,IEnumerable<word>);@} := f1(Seq(0));
|
||||
end.
|
||||
Loading…
Reference in a new issue