mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Weaken let-bindings to if expressions
This commit is contained in:
parent
39b6a509eb
commit
04cf7e070d
2 changed files with 4 additions and 2 deletions
|
@ -3418,7 +3418,9 @@ fn polymorphic_lambda_set_multiple_specializations() {
|
|||
r#"
|
||||
id1 = \x -> x
|
||||
id2 = \y -> y
|
||||
id = if Bool.true then id1 else id2
|
||||
id = \z ->
|
||||
f = if Bool.true then id1 else id2
|
||||
f z
|
||||
|
||||
(id 9u8) + Num.toU8 (id 16u16)
|
||||
"#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue