Invalid Reference Type
data class InvalidReferenceType(val expected: List<Expression.ExpressionType>, val actual: Expression.ExpressionType, val source: Expression) : SemanticError
SemanticError thrown when an Expression is used where another ExpressionType was expected.
Parameters
expected
A list of possible expected ExpressionTypes.
actual
The incorrect ExpressionType that was provided.
source
The Expression that threw the error.
Constructors
Link copied to clipboard
constructor(expected: List<Expression.ExpressionType>, actual: Expression.ExpressionType, source: Expression)