mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
don't add guarded record fields into scope
This commit is contained in:
parent
85e2cf4465
commit
fd7ca5bcc9
8 changed files with 196 additions and 79 deletions
|
@ -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 *",
|
||||
|
|
|
@ -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 * *))",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue