-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine hole in type signature to function type (#1379)
* infer hole in type from pattern * Refine hole in signature when patterns are found * fix
- Loading branch information
1 parent
3205996
commit 2ea049c
Showing
7 changed files
with
103 additions
and
51 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
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,28 @@ | ||
module M; | ||
|
||
inductive Bool { | ||
false : Bool; | ||
true : Bool; | ||
}; | ||
|
||
inductive T { | ||
t : T; | ||
}; | ||
|
||
inductive Nat { | ||
zero : Nat; | ||
suc : Nat → Nat; | ||
}; | ||
|
||
f : _; | ||
f false false ≔ true; | ||
f true _ ≔ false; | ||
|
||
inductive Pair (A : Type) (B : Type) { | ||
mkPair : A → B → Pair A B; | ||
}; | ||
|
||
g : _; | ||
g (mkPair (mkPair zero false) true) ≔ mkPair false zero; | ||
|
||
end; |
Empty file.