This commit is contained in:
Бондарев Иван 2018-04-12 20:41:19 +02:00
parent 6937285974
commit 9ec5782f4c
2 changed files with 12 additions and 1 deletions

View file

@ -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);

View 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.