diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-11-13 18:40:53 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2021-11-13 21:47:24 +0300 |
commit | 3396b254891db02edb29950e7a2a1c1968612949 (patch) | |
tree | 1fc9c1ebb9729dd61e79c9dd3b4503209681c2e1 /doc | |
parent | 3e214a88380dab46a77d48863b7a6f1bc37e2885 (diff) |
Allow using built-in names for variables, push warnings instead
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/ProjectSettings.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index abdd8138ad..05a9608a55 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -368,6 +368,9 @@ <member name="debug/gdscript/warnings/return_value_discarded" type="bool" setter="" getter="" default="true"> If [code]true[/code], enables warnings when calling a function without using its return value (by assigning it to a variable or using it as a function argument). Such return values are sometimes used to denote possible errors using the [enum Error] enum. </member> + <member name="debug/gdscript/warnings/shadowed_global_identifier" type="bool" setter="" getter="" default="true"> + If [code]true[/code], enables warnings when defining a local or subclass member variable, signal, or enum that would have the same name as a built-in function or global class name, which possibly shadow it. + </member> <member name="debug/gdscript/warnings/shadowed_variable" type="bool" setter="" getter="" default="true"> If [code]true[/code], enables warnings when defining a local or subclass member variable that would shadow a variable at an upper level (such as a member variable). </member> |