don't add guarded record fields into scope

This commit is contained in:
Folkert 2020-04-09 01:06:26 +02:00
parent 85e2cf4465
commit fd7ca5bcc9
8 changed files with 196 additions and 79 deletions

View file

@ -1004,7 +1004,7 @@ mod test_solve {
xEmpty = if thunk {} == 42 then { x: {} } else { x: {} }
when xEmpty is
{ x: {} } -> x
{ x: {} } -> {}
"#
),
"{}",
@ -1138,7 +1138,7 @@ mod test_solve {
indoc!(
r#"
when { x: 5 } is
{ x: 4 } -> x
{ x: 4 } -> 4
"#
),
"Num *",

View file

@ -908,7 +908,7 @@ mod test_uniq_solve {
xEmpty = if thunk {} == 42 then { x: {} } else { x: {} }
when xEmpty is
{ x: {} } -> x
{ x: {} } -> {}
"#
),
"Attr * {}",
@ -1046,7 +1046,7 @@ mod test_uniq_solve {
indoc!(
r#"
when { x: 5 } is
{ x: 4 } -> x
{ x: 4 } -> 4
"#
),
"Attr * (Num (Attr * *))",