mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Merge pull request #75988 from dalexeev/gds-unsafe-call-argument
GDScript: Improve call analysis
This commit is contained in:
commit
aa474c9feb
25 changed files with 184 additions and 46 deletions
|
|
@ -108,7 +108,7 @@ String GDScriptWarning::get_message() const {
|
|||
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 a the subtype "%s" but the supertype "%s" was provided.)*", symbols[0], symbols[1], symbols[2], symbols[3]);
|
||||
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]);
|
||||
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