Elide unnecessary copies in CONSTRUCT_TYPED_* opcodes

This commit is contained in:
Shadows_of_Fire
2025-09-20 00:00:18 -07:00
parent d7382aa058
commit b18beb2cc2
3 changed files with 12 additions and 10 deletions

View File

@@ -1,6 +1,5 @@
GDTEST_RUNTIME_ERROR
>> ERROR: Method/function failed. Returning: false
>> Attempted to assign an object into a TypedArray, that does not inherit from 'GDScript'.
>> ERROR: Method/function failed.
>> Unable to convert array index 0 from "Object" to "Object".
>> Attempted to set an object into a TypedArray, that does not inherit from 'GDScript'.
>> ERROR: Condition "!_p->typed.validate(value, "set")" is true.
not ok

View File

@@ -1,6 +1,5 @@
GDTEST_RUNTIME_ERROR
>> ERROR: Method/function failed. Returning: false
>> Attempted to assign an object into a TypedDictionary.Key, that does not inherit from 'GDScript'.
>> ERROR: Method/function failed.
>> Unable to convert key from "Object" to "Object".
>> Attempted to set an object into a TypedDictionary.Key, that does not inherit from 'GDScript'.
>> ERROR: Condition "!_p->typed_key.validate(key, "set")" is true. Returning: false
not ok