diff options
| author | gingerBill <bill@gingerbill.org> | 2017-11-30 19:53:40 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-11-30 19:53:40 +0000 |
| commit | e00d88d82efc5f3400b158a5f601ea6c73214442 (patch) | |
| tree | 8d51ebfcba06a66221e53ea49f0b8ddf8bbf9073 /src/check_expr.cpp | |
| parent | 04cce1826b649e4780e4673f68f9f5e5299f5aaf (diff) | |
Fix issue #157
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index b65f760a7..59151fb12 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -623,6 +623,7 @@ void check_assignment(Checker *c, Operand *operand, Type *type, String context_n if (operand->mode == Addressing_Invalid) { return; } + #if 0 if (operand->mode == Addressing_Type) { Type *t = base_type(type); @@ -665,6 +666,7 @@ void check_assignment(Checker *c, Operand *operand, Type *type, String context_n } } + if (type == nullptr) { return; } |