Index: src/typing.cc |
diff --git a/src/typing.cc b/src/typing.cc |
index f32f0eb393d7c6943146371aee5e2f5eca35391e..6a3c94c0f85e240609b28a8a989eab8a2c7832bb 100644 |
--- a/src/typing.cc |
+++ b/src/typing.cc |
@@ -675,7 +675,7 @@ void AstTyper::VisitBinaryOperation(BinaryOperation* expr) { |
Bounds l = expr->left()->bounds(); |
Bounds r = expr->right()->bounds(); |
Type* lower = |
- l.lower->Is(Type::None()) || r.lower->Is(Type::None()) ? |
+ !l.lower->IsInhabited() || !r.lower->IsInhabited() ? |
Type::None(zone()) : |
l.lower->Is(Type::String()) || r.lower->Is(Type::String()) ? |
Type::String(zone()) : |