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