-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ fix ] auto search returns no solution instead of ambiguous solution
- Loading branch information
1 parent
f8adee7
commit 1807cdc
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
data Expr : Type -> Type where | ||
Add : (Integral n) => n -> n -> Expr n | ||
|
||
eval : (Integral n) => Expr n -> n | ||
eval (Add x y) = x + y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
1/1: Building Issue3313 (Issue3313.idr) | ||
Error: While processing right hand side of eval. Multiple solutions found in search of: | ||
Integral n | ||
|
||
Issue3313:5:18--5:23 | ||
1 | data Expr : Type -> Type where | ||
2 | Add : (Integral n) => n -> n -> Expr n | ||
3 | | ||
4 | eval : (Integral n) => Expr n -> n | ||
5 | eval (Add x y) = x + y | ||
^^^^^ | ||
|
||
Possible correct results: | ||
conArg (implicitly bound at Issue3313:5:1--5:23) | ||
conArg (implicitly bound at Issue3313:5:1--5:23) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
. ../../../testutils.sh | ||
|
||
check Issue3313.idr |