Better error message if type is not indexable with type
This commit is contained in:
@@ -64,6 +64,11 @@ namespace Upsilon
|
||||
{
|
||||
LogError($"Cannot convert type '{actualType}' to '{expectedType}'", span);
|
||||
}
|
||||
|
||||
public void LogInvalidIndexExpression(Type expressionType, Type indexType, TextSpan span)
|
||||
{
|
||||
LogError($"Cannot index type '{expressionType}' with type '{indexType}'", span);
|
||||
}
|
||||
}
|
||||
|
||||
public class DiagnosticsMessage
|
||||
|
||||
Reference in New Issue
Block a user