mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-18 19:10:18 +00:00
used resulting incremented_symbols
This commit is contained in:
parent
94fb89bde4
commit
d735742fdb
3 changed files with 66 additions and 8 deletions
|
@ -3111,3 +3111,26 @@ fn dbg_in_expect() {
|
|||
"###
|
||||
)
|
||||
}
|
||||
|
||||
#[mono_test]
|
||||
fn drop_specialize_inc_after_jump() {
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
Tuple a b : { left : a, right : b }
|
||||
|
||||
main =
|
||||
v = "value"
|
||||
t = { left: { left: v, right: v }, right: v }
|
||||
tupleItem t
|
||||
|
||||
tupleItem = \t ->
|
||||
true = Bool.true
|
||||
l = t.left
|
||||
x = if true then 1 else 0
|
||||
t2 = {left: l, right: t}
|
||||
{left: l, right: t2}
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue