Use correct variable when compiling dbg continuation

Closes #5479
This commit is contained in:
Ayaz Hafiz 2023-06-13 16:45:02 -05:00
parent b3c598fcf6
commit c91b82198d
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,6 @@
procedure Test.0 ():
let Test.1 : Str = "";
dbg Test.1;
dec Test.1;
let Test.2 : I64 = 42i64;
ret Test.2;

View file

@ -3133,3 +3133,16 @@ fn drop_specialize_before_jump() {
"#
)
}
#[mono_test]
fn dbg_str_followed_by_number() {
indoc!(
r#"
app "test" provides [main] to "./platform"
main =
dbg ""
42
"#
)
}