Merge pull request #76412 from dalexeev/gds-reorganize-warnings

GDScript: Reorganize and unify warnings
This commit is contained in:
Rémi Verschelde
2023-04-28 18:45:48 +02:00
22 changed files with 175 additions and 212 deletions

View File

@@ -2,7 +2,7 @@ GDTEST_OK
>> WARNING
>> Line: 20
>> UNSAFE_VOID_RETURN
>> The method 'return_side_effect()' returns 'void' but it's trying to return a call to 'side_effect()' that can't be ensured to also be 'void'.
>> The method "return_side_effect()" returns "void" but it's trying to return a call to "side_effect()" that can't be ensured to also be "void".
hello
effect
effect

View File

@@ -2,5 +2,5 @@ GDTEST_OK
>> WARNING
>> Line: 6
>> UNSAFE_METHOD_ACCESS
>> The method 'free' is not present on the inferred type 'Variant' (but may be present on a subtype).
>> The method "free()" is not present on the inferred type "Variant" (but may be present on a subtype).
Ok