From 18516cf75ad37b54f048debf4c4ea0bdc102c5c6 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 27 Sep 2008 08:29:27 +0100 Subject: [PATCH] The expression "x in dict" is now a maybe type It returns null if x isn't in the dictionary. --- dmd/expression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmd/expression.c b/dmd/expression.c index 47eb6d3..d5ec5c1 100644 --- a/dmd/expression.c +++ b/dmd/expression.c @@ -8340,7 +8340,7 @@ Expression *InExp::semantic(Scope *sc) e1 = e1->implicitCastTo(sc, ta->index); // Return type is pointer to value - type = ta->next->pointerTo(); + type = ta->next->pointerTo()->maybe(); } return this; } -- 2.11.4.GIT