mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Add gen test for #4077
This commit is contained in:
parent
2a5864c19a
commit
08eda910ef
1 changed files with 25 additions and 0 deletions
|
@ -2022,3 +2022,28 @@ fn dispatch_tag_union_function_inferred() {
|
|||
RocStr
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
fn issue_4077_fixed_fixpoint() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
Input : [FromProjectSource, FromJob Job]
|
||||
|
||||
Job : [Job { inputs : List Input }]
|
||||
|
||||
job : { inputs : List Input } -> Job
|
||||
job = \config -> Job config
|
||||
|
||||
main =
|
||||
when job { inputs: [] } is
|
||||
_ -> "OKAY"
|
||||
"#
|
||||
),
|
||||
RocStr::from("OKAY"),
|
||||
RocStr
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue