diff --git a/Upsilon/Binder/Binder.cs b/Upsilon/Binder/Binder.cs index 33e125f..3bc59d7 100644 --- a/Upsilon/Binder/Binder.cs +++ b/Upsilon/Binder/Binder.cs @@ -156,7 +156,7 @@ namespace Upsilon.Binder else { // don't allow assigning different typed variables to a variable, unless either of them is nil, allow assigning nil to all variables - if (boundExpression.Type != variable.Type && (variable.Type != Type.Nil || boundExpression.Type == Type.Nil)) + if (boundExpression.Type != variable.Type) { if (variable.Type == Type.Nil || boundExpression.Type == Type.Nil) {