-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3017 from dunhamsteve/issue-3016
[ fix ] Ensure local defs with no claim are local
- Loading branch information
Showing
9 changed files
with
66 additions
and
17 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
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,4 @@ | ||
bar = 3 | ||
where wat = 2 | ||
baz = 3 | ||
where wat = 2 |
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,6 @@ | ||
two: Nat | ||
two = 2 | ||
|
||
bar: a -> a | ||
bar x = x where | ||
wat = two |
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,9 @@ | ||
foo : Integer | ||
foo = | ||
let z : Int | ||
z = 1 | ||
y = 1 | ||
in y | ||
|
||
fee : Integer | ||
fee = 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,9 @@ | ||
import Data.String | ||
|
||
test str = len | ||
where | ||
xs = words str | ||
len = length xs | ||
|
||
parameters (n : Nat) (strs : List String) | ||
len = List.length strs |
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,14 @@ | ||
1/1: Building Issue3016 (Issue3016.idr) | ||
1/1: Building Issue2782 (Issue2782.idr) | ||
Error: While processing right hand side of fee. Undefined name y. | ||
|
||
Issue2782:9:7--9:8 | ||
5 | y = 1 | ||
6 | in y | ||
7 | | ||
8 | fee : Integer | ||
9 | fee = y | ||
^ | ||
|
||
1/1: Building Issue2592 (Issue2592.idr) | ||
1/1: Building Issue2593 (Issue2593.idr) |
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,6 @@ | ||
rm -rf build | ||
|
||
$1 --no-color --console-width 0 --no-banner --check Issue3016.idr | ||
$1 --no-color --console-width 0 --no-banner --check Issue2782.idr | ||
$1 --no-color --console-width 0 --no-banner --check Issue2592.idr | ||
$1 --no-color --console-width 0 --no-banner --check Issue2593.idr |