mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Void* should never deref and should allow methods to be attached to it.
This commit is contained in:
@@ -1879,9 +1879,10 @@ bool type_may_have_method(Type *type)
|
||||
return true;
|
||||
case TYPE_TYPEDEF:
|
||||
UNREACHABLE
|
||||
case TYPE_POINTER:
|
||||
return type == type_voidptr;
|
||||
case TYPE_POISONED:
|
||||
case TYPE_VOID:
|
||||
case TYPE_POINTER:
|
||||
case TYPE_FUNC:
|
||||
case TYPE_UNTYPED_LIST:
|
||||
case TYPE_OPTIONAL:
|
||||
|
||||
Reference in New Issue
Block a user