Fix assignment type error throwing exception
This commit is contained in:
@@ -155,8 +155,7 @@ namespace Upsilon.Binder
|
|||||||
if (boundExpression.Type != variable.Type)
|
if (boundExpression.Type != variable.Type)
|
||||||
{
|
{
|
||||||
_diagnostics.LogCannotConvert(boundExpression.Type, variable.Type, e.Span);
|
_diagnostics.LogCannotConvert(boundExpression.Type, variable.Type, e.Span);
|
||||||
throw new NotImplementedException();
|
return new BoundExpressionStatement(boundExpression);
|
||||||
//return boundExpression;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user