mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
make things work by removing type signatures
This commit is contained in:
parent
847a1be65e
commit
33ff36daad
2 changed files with 4 additions and 5 deletions
|
@ -974,7 +974,6 @@ mod gen_primitives {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore]
|
|
||||||
fn io_poc_effect() {
|
fn io_poc_effect() {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
|
@ -983,13 +982,13 @@ mod gen_primitives {
|
||||||
|
|
||||||
Effect a : [ @Effect ({} -> a) ]
|
Effect a : [ @Effect ({} -> a) ]
|
||||||
|
|
||||||
succeed : a -> Effect a
|
# succeed : a -> Effect a
|
||||||
succeed = \x -> @Effect \{} -> x
|
succeed = \x -> @Effect \{} -> x
|
||||||
|
|
||||||
runEffect : Effect a -> a
|
# runEffect : Effect a -> a
|
||||||
runEffect = \@Effect thunk -> thunk {}
|
runEffect = \@Effect thunk -> thunk {}
|
||||||
|
|
||||||
foo : Effect Float
|
# foo : Effect Float
|
||||||
foo =
|
foo =
|
||||||
succeed 3.14
|
succeed 3.14
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,7 @@ fn unify_alias(
|
||||||
problems.extend(merge(subs, &ctx, other_content.clone()));
|
problems.extend(merge(subs, &ctx, other_content.clone()));
|
||||||
|
|
||||||
if problems.is_empty() {
|
if problems.is_empty() {
|
||||||
problems.extend(unify_pool(subs, pool, real_var, *other_real_var))
|
problems.extend(unify_pool(subs, pool, real_var, *other_real_var));
|
||||||
}
|
}
|
||||||
|
|
||||||
problems
|
problems
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue