Fix assignment type error throwing exception

This commit is contained in:
Deukhoofd 2018-11-12 17:54:35 +01:00
parent e9391193bb
commit 276b267045
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 2 deletions

View File

@ -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;
} }
} }