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)
|
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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue