Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partially fix page width problem #806

Merged
merged 3 commits into from
Dec 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions base/src/test/resources/failure/operator/no-assoc.aya.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ In file $FILE:9:24 ->
9 | def test3 => (suc zero) = (suc (suc zero)) = (suc (suc (suc zero)))
^^

Error: Cannot figure out computation order because `=` (Infix) and `=` (Infix) share
the same precedence but no associativity was specified.
Error: Cannot figure out computation order because `=` (Infix) and `=` (Infix)
share the same precedence but no associativity was specified.
note: Make them both left/right-associative to resolve this problem.

1 error(s), 0 warning(s).
Expand Down
76 changes: 44 additions & 32 deletions base/src/test/resources/failure/patterns/confl-literal.aya.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,29 @@ In file $FILE:4:4 ->
4 | | 0 => 0
^----^

Warning: The 2nd clause dominates the 1st clause. The 1st clause will be unreachable

Warning: The 2nd clause dominates the 1st clause. The 1st clause will be
unreachable

In file $FILE:6:4 ->

4 | | 0 => 0
5 | | a => a
6 | | suc a => suc a
^------------^

Warning: The 2nd clause dominates the 3rd clause. The 3rd clause will be unreachable

Warning: The 2nd clause dominates the 3rd clause. The 3rd clause will be
unreachable

In file $FILE:10:4 ->

8 | | 2147483647 => 3
9 | | 2147483647 => 4
10 | | 114514 => 1919
^------------^

Warning: The 2nd clause dominates the 7th clause. The 7th clause will be unreachable

Warning: The 2nd clause dominates the 7th clause. The 7th clause will be
unreachable

In file $FILE:3:12 ->

1 | open data Nat | zero | suc Nat
Expand All @@ -44,25 +47,27 @@ Error: The 7th and the 2nd clauses are not confluent because we failed to unify
1919
and
114514

In file $FILE:6:4 ->

4 | | 0 => 0
5 | | a => a
6 | | suc a => suc a
^------------^

Warning: The 2nd clause dominates the 3rd clause. The 3rd clause will be unreachable

Warning: The 2nd clause dominates the 3rd clause. The 3rd clause will be
unreachable

In file $FILE:7:4 ->

5 | | a => a
6 | | suc a => suc a
7 | | suc (suc a) => a
^--------------^

Warning: The 3rd clause dominates the 4th clause. The 4th clause will be unreachable

Warning: The 3rd clause dominates the 4th clause. The 4th clause will be
unreachable

In file $FILE:3:12 ->

1 | open data Nat | zero | suc Nat
Expand All @@ -79,25 +84,27 @@ Error: The 3rd and the 4th clauses are not confluent because we failed to unify
suc (suc a)
and
a

In file $FILE:9:4 ->

7 | | suc (suc a) => a
8 | | 2147483647 => 3
9 | | 2147483647 => 4
^-------------^

Warning: The 5th clause dominates the 6th clause. The 6th clause will be unreachable

Warning: The 5th clause dominates the 6th clause. The 6th clause will be
unreachable

In file $FILE:8:4 ->

6 | | suc a => suc a
7 | | suc (suc a) => a
8 | | 2147483647 => 3
^-------------^

Warning: The 6th clause dominates the 5th clause. The 5th clause will be unreachable

Warning: The 6th clause dominates the 5th clause. The 5th clause will be
unreachable

In file $FILE:3:12 ->

1 | open data Nat | zero | suc Nat
Expand All @@ -116,16 +123,17 @@ Error: The 5th and the 6th clauses are not confluent because we failed to unify
3
and
4

In file $FILE:9:4 ->

7 | | suc (suc a) => a
8 | | 2147483647 => 3
9 | | 2147483647 => 4
^-------------^

Warning: The 2nd clause dominates the 6th clause. The 6th clause will be unreachable

Warning: The 2nd clause dominates the 6th clause. The 6th clause will be
unreachable

In file $FILE:3:12 ->

1 | open data Nat | zero | suc Nat
Expand All @@ -144,25 +152,27 @@ Error: The 6th and the 2nd clauses are not confluent because we failed to unify
4
and
2147483647

In file $FILE:6:4 ->

4 | | 0 => 0
5 | | a => a
6 | | suc a => suc a
^------------^

Warning: The 2nd clause dominates the 3rd clause. The 3rd clause will be unreachable

Warning: The 2nd clause dominates the 3rd clause. The 3rd clause will be
unreachable

In file $FILE:7:4 ->

5 | | a => a
6 | | suc a => suc a
7 | | suc (suc a) => a
^--------------^

Warning: The 3rd clause dominates the 4th clause. The 4th clause will be unreachable

Warning: The 3rd clause dominates the 4th clause. The 4th clause will be
unreachable

In file $FILE:3:12 ->

1 | open data Nat | zero | suc Nat
Expand All @@ -179,25 +189,27 @@ Error: The 3rd and the 4th clauses are not confluent because we failed to unify
suc (suc a)
and
a

In file $FILE:6:4 ->

4 | | 0 => 0
5 | | a => a
6 | | suc a => suc a
^------------^

Warning: The 2nd clause dominates the 3rd clause. The 3rd clause will be unreachable

Warning: The 2nd clause dominates the 3rd clause. The 3rd clause will be
unreachable

In file $FILE:7:4 ->

5 | | a => a
6 | | suc a => suc a
7 | | suc (suc a) => a
^--------------^

Warning: The 3rd clause dominates the 4th clause. The 4th clause will be unreachable

Warning: The 3rd clause dominates the 4th clause. The 4th clause will be
unreachable

In file $FILE:3:12 ->

1 | open data Nat | zero | suc Nat
Expand All @@ -214,6 +226,6 @@ Error: The 3rd and the 4th clauses are not confluent because we failed to unify
suc (suc a)
and
a
6 error(s), 12 warning(s).
What are you doing?

6 error(s), 12 warning(s).
What are you doing?
Loading