Mark patterns in lambda argument position as having a presence constraint

Closes #2299
This commit is contained in:
ayazhafiz 2021-12-30 18:21:28 -06:00
parent aaa041cee5
commit fda6c70835
2 changed files with 18 additions and 5 deletions

View file

@ -77,7 +77,7 @@ fn constrain_untyped_args(
loc_pattern.region,
pattern_expected,
&mut pattern_state,
false,
true,
);
vars.push(*pattern_var);