mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Fix some tests
This commit is contained in:
parent
ee3c71dfe6
commit
89700b491c
6 changed files with 28 additions and 47 deletions
|
@ -2510,13 +2510,15 @@ mod solve_expr {
|
|||
infer_eq_without_problem(
|
||||
indoc!(
|
||||
r"
|
||||
empty : [Cons a (ConsList a), Nil] as ConsList a
|
||||
empty = Nil
|
||||
ConsList a : [Cons a (ConsList a), Nil]
|
||||
|
||||
empty
|
||||
"
|
||||
empty : ConsList _
|
||||
empty = Nil
|
||||
|
||||
empty
|
||||
"
|
||||
),
|
||||
"ConsList a",
|
||||
"ConsList *",
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -3742,7 +3744,7 @@ mod solve_expr {
|
|||
indoc!(
|
||||
r"
|
||||
\rec ->
|
||||
{ x, y } : { x : I64, y ? Bool }*
|
||||
{ x, y } : { x : I64, y ? Bool }_
|
||||
{ x, y ? Bool.false } = rec
|
||||
|
||||
{ x, y }
|
||||
|
@ -3909,26 +3911,6 @@ mod solve_expr {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn double_named_rigids() {
|
||||
infer_eq_without_problem(
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
|
||||
main : List x
|
||||
main =
|
||||
empty : List x
|
||||
empty = []
|
||||
|
||||
empty
|
||||
"#
|
||||
),
|
||||
"List x",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn double_tag_application() {
|
||||
infer_eq_without_problem(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue