diff options
| author | gingerBill <ginger.bill.22@gmail.com> | 2016-07-22 16:09:49 +0100 |
|---|---|---|
| committer | gingerBill <ginger.bill.22@gmail.com> | 2016-07-22 16:09:49 +0100 |
| commit | f8fd6fce0b9aabd9562ac8d0dda712154b829f26 (patch) | |
| tree | 458af62a56423f4096834c5151fb1990fe2a721c /src/checker/type.cpp | |
| parent | 86c083535f5f198c00901f3b137cf52ac36691fe (diff) | |
Procedure Literal
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) |