Deprecation of @assignable_to

This commit is contained in:
Christoffer Lerno
2025-08-26 13:21:42 +02:00
parent 1634217fc4
commit cb17cfff7d
18 changed files with 46 additions and 37 deletions

View File

@@ -203,7 +203,7 @@ macro Object* Object.object_from_value(&self, value) @private
return value;
$case $Type.typeid == void*.typeid:
return &NULL_OBJECT;
$case @assignable_to(value, String):
$case $defined(String x = value):
return new_string(value, self.allocator);
$default:
$error "Unsupported object type.";