This commit is contained in:
Бондарев Иван 2018-06-02 14:25:57 +02:00
parent 30d672cbfc
commit cf3011b292
2 changed files with 10 additions and 0 deletions

View file

@ -2905,7 +2905,10 @@ namespace CodeCompletion
TypeScope tmp_awaitedProcType = awaitedProcType;
if (ps.parameters != null && ps.parameters.Count > i + (ps.IsExtension ? 1 : 0))
awaitedProcType = ps.parameters[i + (ps.IsExtension ? 1 : 0)].sc as TypeScope;
bool tmp_disable_lambda_compilation = disable_lambda_compilation;
disable_lambda_compilation = false;
e.visit(this);
disable_lambda_compilation = tmp_disable_lambda_compilation;
awaitedProcType = tmp_awaitedProcType;
}
}

View file

@ -0,0 +1,7 @@
procedure p1(b: sequence of byte) := exit;
begin
var hs := new HashSet<byte>;
p1(hs.Select(a -> a{@parameter a: byte;@}));
end.