Add test that #4749 compiles

Now that mono does not store expect lookup layouts, the layout cache
should be primed only when specializing the condition of an expect, and
so #4749 is resolved.

Closes #4749
This commit is contained in:
Ayaz Hafiz 2022-12-14 14:16:59 -06:00
parent a5ecded934
commit 1233317907
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -2159,3 +2159,17 @@ fn issue_4705() {
"###
)
}
#[mono_test(mode = "test")]
fn issue_4749() {
indoc!(
r###"
interface Test exposes [] imports [Json]
expect
input = [82, 111, 99]
got = Decode.fromBytes input Json.fromUtf8
got == Ok "Roc"
"###
)
}