Log error if using full stop indexer on userdata type when the indexer doesn't exist
This commit is contained in:
parent
f983239b5a
commit
4fa0ad9f70
|
@ -712,6 +712,8 @@ namespace Upsilon.Binder
|
|||
{
|
||||
return new BoundFullStopIndexExpression(expression, index, property.Type, e.Span);
|
||||
}
|
||||
_diagnostics.LogError($"No variable '{index}' found on type '{udBoundDef.Name}'.",
|
||||
e.Span);
|
||||
}
|
||||
return new BoundFullStopIndexExpression(expression, index, Type.Unknown, e.Span);
|
||||
case Type.Unknown:
|
||||
|
|
Loading…
Reference in New Issue