mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Merge branch 'delay-instantiating-aliases-fix-limitations' into builtins-in-roc
This commit is contained in:
commit
35e5a36ea4
6 changed files with 256 additions and 92 deletions
|
@ -1908,6 +1908,35 @@ fn wildcard_rigid() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
fn alias_of_alias_with_type_arguments() {
|
||||
assert_non_opt_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [ main ] to "./platform"
|
||||
|
||||
Effect a : [ @Effect a ]
|
||||
|
||||
Task a err : Effect (Result a err)
|
||||
|
||||
always : a -> Task a *
|
||||
always = \x ->
|
||||
inner = (Ok x)
|
||||
|
||||
@Effect inner
|
||||
|
||||
|
||||
main : Task {} (Float *)
|
||||
main = always {}
|
||||
"#
|
||||
),
|
||||
0,
|
||||
i64,
|
||||
|_| 0
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm"))]
|
||||
#[ignore]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue