From 276b267045e0d474cf82b6ec45439cd389f00f68 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Mon, 12 Nov 2018 17:54:35 +0100 Subject: [PATCH] Fix assignment type error throwing exception --- Upsilon/Binder/Binder.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Upsilon/Binder/Binder.cs b/Upsilon/Binder/Binder.cs index 7d5eb4c..9002407 100644 --- a/Upsilon/Binder/Binder.cs +++ b/Upsilon/Binder/Binder.cs @@ -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); } }