aboutsummaryrefslogtreecommitdiff
path: root/Sil/Error.dcl
diff options
context:
space:
mode:
authorCamil Staps2017-08-18 21:15:40 +0200
committerCamil Staps2017-08-18 21:15:40 +0200
commit6e8c5385fc3dc9416f59fa48657685506d3045eb (patch)
tree92ca243d5f365578de6986692a99043d52549383 /Sil/Error.dcl
parentMade some more errors positional (#5) (diff)
Positional errors fully implemented; resolves #5
Diffstat (limited to 'Sil/Error.dcl')
-rw-r--r--Sil/Error.dcl4
1 files changed, 1 insertions, 3 deletions
diff --git a/Sil/Error.dcl b/Sil/Error.dcl
index 42341ed..947ba9a 100644
--- a/Sil/Error.dcl
+++ b/Sil/Error.dcl
@@ -18,7 +18,7 @@ instance < ErrorPosition
= E.a: P_Invalid String a & toString a
| E.a: P_Expected ErrorPosition String a & toString a
// Type errors
- | T_IllegalApplication Type Type
+ | T_IllegalApplication ErrorPosition Type Type
| T_IllegalField ErrorPosition String Type
| T_TooHighTupleArity ErrorPosition Int
// Check errors
@@ -33,8 +33,6 @@ instance < ErrorPosition
// Compile errors
| C_UndefinedName ErrorPosition String
| C_UndefinedField ErrorPosition String
- | C_VariableLabel
- | C_FunctionOnStack
| C_CouldNotDeduceType Expression
| C_TypeMisMatch Type Expression Type
| C_BasicInitWithoutValue ErrorPosition String