fix #884
This commit is contained in:
parent
30d672cbfc
commit
cf3011b292
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
7
TestSuite/intellisense_tests/lambdas4.pas
Normal file
7
TestSuite/intellisense_tests/lambdas4.pas
Normal 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.
|
||||
Loading…
Reference in a new issue