used resulting incremented_symbols

This commit is contained in:
J.Teeuwissen 2023-05-29 17:21:36 +02:00 committed by Folkert
parent 94fb89bde4
commit d735742fdb
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 66 additions and 8 deletions

View file

@ -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}
"#
)
}