Add a FatalUserError macro to help print user-caused errors. (#668)

This commit is contained in:
Jon Meow
2021-07-21 12:38:56 -07:00
committed by GitHub
parent f3cbfc04c6
commit 034f3600e3
15 changed files with 102 additions and 26 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
5: positional members must come before named members
ERROR: 5: positional members must come before named members
EXIT CODE: 255
+1 -1
View File
@@ -1,4 +1,4 @@
7: type error in initializer of variable
ERROR: 7: type error in initializer of variable
expected: Int
actual: Bool
EXIT CODE: 255
+1 -1
View File
@@ -1,4 +1,4 @@
10: type error in return
ERROR: 10: type error in return
expected: ()
actual: Int
EXIT CODE: 255
+1 -1
View File
@@ -1,2 +1,2 @@
6: positional members must come before named members
ERROR: 6: positional members must come before named members
EXIT CODE: 255
+1 -1
View File
@@ -1,4 +1,4 @@
8: type error in pattern variable
ERROR: 8: type error in pattern variable
expected: (x = Int, y = Int)
actual: (y = Int, x = Int)
EXIT CODE: 255
+1 -1
View File
@@ -1,4 +1,4 @@
8: type error in ==
ERROR: 8: type error in ==
expected: (0 = Int, 1 = Int)
actual: (0 = Int)
EXIT CODE: 255