Fix assignment type error throwing exception

This commit is contained in:
Deukhoofd committed 2018-11-12 17:54:35 +01:00
1 parent e9391193bb
commit 276b267045
1 file changed
+1 -2
+1 -2
View File
@@ -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);
}
}