mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Merge branch 'precompiled-legacy' into https-packages
This commit is contained in:
commit
f5cb2d73a1
96 changed files with 4063 additions and 1334 deletions
|
@ -2004,3 +2004,30 @@ fn match_list() {
|
|||
"#
|
||||
)
|
||||
}
|
||||
|
||||
#[mono_test]
|
||||
#[ignore = "https://github.com/roc-lang/roc/issues/4561"]
|
||||
fn recursive_function_and_union_with_inference_hole() {
|
||||
let _tracing_guards = roc_tracing::setup_tracing!();
|
||||
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
Html state : [
|
||||
Element (List (Html state)),
|
||||
]
|
||||
|
||||
translateStatic : Html _ -> Html _
|
||||
translateStatic = \node ->
|
||||
when node is
|
||||
Element children ->
|
||||
newChildren = List.map children translateStatic
|
||||
|
||||
Element newChildren
|
||||
|
||||
main = when translateStatic (Element []) is
|
||||
_ -> ""
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue