GDScript: Fix UNSAFE_CALL_ARGUMENT warning for Variant constructors
This commit is contained in:
parent
19890614c6
commit
ba96d4f631
5 changed files with 78 additions and 24 deletions
|
|
@ -107,8 +107,8 @@ String GDScriptWarning::get_message() const {
|
|||
CHECK_SYMBOLS(1);
|
||||
return vformat(R"(The value is cast to "%s" but has an unknown type.)", symbols[0]);
|
||||
case UNSAFE_CALL_ARGUMENT:
|
||||
CHECK_SYMBOLS(4);
|
||||
return vformat(R"*(The argument %s of the function "%s()" requires the subtype "%s" but the supertype "%s" was provided.)*", symbols[0], symbols[1], symbols[2], symbols[3]);
|
||||
CHECK_SYMBOLS(5);
|
||||
return vformat(R"*(The argument %s of the %s "%s()" requires the subtype "%s" but the supertype "%s" was provided.)*", symbols[0], symbols[1], symbols[2], symbols[3], symbols[4]);
|
||||
case UNSAFE_VOID_RETURN:
|
||||
CHECK_SYMBOLS(2);
|
||||
return vformat(R"*(The method "%s()" returns "void" but it's trying to return a call to "%s()" that can't be ensured to also be "void".)*", symbols[0], symbols[1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue