summaryrefslogtreecommitdiff
path: root/type-check.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2007-10-06 20:42:32 -0400
committerSøren Sandmann <sandmann@redhat.com>2007-10-06 20:42:32 -0400
commit969931a98ca56adbb31c97ba41f09c212207bc40 (patch)
tree246419aa64b4bef8a5782fccfedbcbeb359ceeae /type-check.c
parentc8bf8c65b29e3489483319ccc3395670d029c7d4 (diff)
Beginning of garbage collector
Diffstat (limited to 'type-check.c')
-rw-r--r--type-check.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/type-check.c b/type-check.c
index ca533e2..d29fb4c 100644
--- a/type-check.c
+++ b/type-check.c
@@ -181,7 +181,10 @@ assignable (ast_type_spec_t *left,
{
return TRUE;
}
-
+
+ if (is_class (left), is_null (right))
+ return TRUE;
+
return FALSE;
}