mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
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:
parent
a5ecded934
commit
1233317907
1 changed files with 14 additions and 0 deletions
|
@ -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"
|
||||
"###
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue