-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9aaa52c
commit 1ebf69e
Showing
3 changed files
with
44 additions
and
4 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,17 @@ | ||
-- set_option trace.Elab true | ||
def myId : List α → List α | ||
| List.nil => List.nil | ||
|
||
def constNil : List α → List α | ||
| List.nil => List.nil | ||
| List.cons x y => List.nil | ||
|
||
def failing1 : List α → List α | ||
| [] => List.nil | ||
|
||
def failing2 : List α → List α | ||
| x => List.nil | ||
| foo.bar => List.nil -- "invalid pattern variable" | ||
|
||
def myId2 : List α → List α | ||
| foo.bar => foo.bar |
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 @@ | ||
patvar.lean:3:0: error: missing cases: | ||
(List.cons _ _) | ||
patvar.lean:10:0: error: missing cases: | ||
(List.cons _ _) | ||
patvar.lean:14:0: error: invalid pattern variable, must be atomic | ||
patvar.lean:17:0: error: invalid pattern variable, must be atomic |