-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use function arg types in typechecking
- Loading branch information
1 parent
deade95
commit 21148e8
Showing
3 changed files
with
75 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- category = "error" | ||
-- | ||
-- [metadata] | ||
-- error = "Type.mismatch" | ||
-- | ||
-- [metadata.expectation] | ||
-- expected = "Bool" | ||
-- got = "Num" | ||
(|x: Num| true) : Bool -> Bool |
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,10 @@ | ||
-- category = "error" | ||
-- | ||
-- [metadata] | ||
-- error = "Type.mismatch" | ||
-- | ||
-- [metadata.expectation] | ||
-- expected = "Num" | ||
-- got = "Unit" | ||
let f = |x: Num| true in | ||
f () |
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