diff options
Diffstat (limited to 'src/checker/type.cpp')
| -rw-r--r-- | src/checker/type.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp index 301def0ca..291d6fd17 100644 --- a/src/checker/type.cpp +++ b/src/checker/type.cpp @@ -307,6 +307,11 @@ b32 are_types_identical(Type *x, Type *y) { if (x == y) return true; + if ((x == NULL && y != NULL) || + (x != NULL && y == NULL)) { + return false; + } + switch (x->kind) { case Type_Basic: if (y->kind == Type_Basic) |