Package hydra.error.checking
Class CheckingError
- java.lang.Object
-
- hydra.error.checking.CheckingError
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CheckingError>
- Direct Known Subclasses:
CheckingError.IncorrectUnification,CheckingError.NotAForallType,CheckingError.NotAFunctionType,CheckingError.TypeArityMismatch,CheckingError.TypeMismatch,CheckingError.UnboundTypeVariables,CheckingError.UnequalTypes,CheckingError.UnsupportedTermVariant,CheckingError.UntypedLambda,CheckingError.UntypedLetBinding
public abstract class CheckingError extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<CheckingError>
An error that occurred during type checking- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckingError.IncorrectUnificationA post-unification consistency check failurestatic classCheckingError.NotAForallTypeA type that is not a forall type when one was expectedstatic classCheckingError.NotAFunctionTypeA type that is not a function type when one was expectedstatic interfaceCheckingError.PartialVisitor<R>static classCheckingError.TypeArityMismatchA type constructor applied to the wrong number of argumentsstatic classCheckingError.TypeMismatchA type mismatch between expected and actual typesstatic classCheckingError.UnboundTypeVariablesType variables that are not bound in scopestatic classCheckingError.UnequalTypesMultiple types that should be equal but are notstatic classCheckingError.UnsupportedTermVariantA term variant that the type checker does not supportstatic classCheckingError.UntypedLambdaA lambda expression without a type annotation on its parameterstatic classCheckingError.UntypedLetBindingA let binding without a type annotationstatic interfaceCheckingError.Visitor<R>
-
Field Summary
Fields Modifier and Type Field Description static NameINCORRECT_UNIFICATIONstatic NameNOT_A_FORALL_TYPEstatic NameNOT_A_FUNCTION_TYPEstatic NameTYPE_static NameTYPE_ARITY_MISMATCHstatic NameTYPE_MISMATCHstatic NameUNBOUND_TYPE_VARIABLESstatic NameUNEQUAL_TYPESstatic NameUNSUPPORTED_TERM_VARIANTstatic NameUNTYPED_LAMBDAstatic NameUNTYPED_LET_BINDING
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <R> Raccept(CheckingError.Visitor<R> visitor)
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
-
INCORRECT_UNIFICATION
public static final Name INCORRECT_UNIFICATION
-
NOT_A_FORALL_TYPE
public static final Name NOT_A_FORALL_TYPE
-
NOT_A_FUNCTION_TYPE
public static final Name NOT_A_FUNCTION_TYPE
-
TYPE_ARITY_MISMATCH
public static final Name TYPE_ARITY_MISMATCH
-
TYPE_MISMATCH
public static final Name TYPE_MISMATCH
-
UNBOUND_TYPE_VARIABLES
public static final Name UNBOUND_TYPE_VARIABLES
-
UNEQUAL_TYPES
public static final Name UNEQUAL_TYPES
-
UNSUPPORTED_TERM_VARIANT
public static final Name UNSUPPORTED_TERM_VARIANT
-
UNTYPED_LAMBDA
public static final Name UNTYPED_LAMBDA
-
UNTYPED_LET_BINDING
public static final Name UNTYPED_LET_BINDING
-
-
Method Detail
-
accept
public abstract <R> R accept(CheckingError.Visitor<R> visitor)
-
-