Merge branch 'precompiled-legacy' into https-packages

This commit is contained in:
Richard Feldman 2022-11-24 04:25:54 -05:00
commit f5cb2d73a1
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
96 changed files with 4063 additions and 1334 deletions

View file

@ -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
_ -> ""
"#
)
}