This commit is contained in:
Ayaz Hafiz 2022-12-13 11:17:23 -06:00
parent 6f2e14cf18
commit ed4e047ee8
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 68 additions and 0 deletions

View file

@ -2173,3 +2173,22 @@ fn issue_4749() {
"###
)
}
#[mono_test(mode = "test", no_check)]
fn issue_4733() {
indoc!(
r###"
interface Test exposes [] imports []
fn = \{} ->
instr : [ Op (U64, U64 -> U64) ]
instr = if Bool.true then (Op Num.mul) else (Op Num.add)
Op op = instr
\a -> op a a
expect ((fn {}) 3) == 9
"###
)
}