summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-26 16:36:39 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-26 16:36:39 +0200
commit9b0b441cf386d4420b1ecc1ae3d39eff09dd2d23 (patch)
tree9fae7c9e5f0a3b385b0a2ac0772f8502ea54b41a /modules/gdscript/tests
parent4410b0b0e164e6c7aa127dc22a47fc88497443f7 (diff)
parent4ce27301d3baec04f8259db9a3bc5dacbe359304 (diff)
downloadredot-engine-9b0b441cf386d4420b1ecc1ae3d39eff09dd2d23.tar.gz
Merge pull request #82139 from dalexeev/gds-add-inferred-declaration-warning
GDScript: Add `INFERRED_DECLARATION` warning
Diffstat (limited to 'modules/gdscript/tests')
-rw-r--r--modules/gdscript/tests/gdscript_test_runner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/tests/gdscript_test_runner.cpp b/modules/gdscript/tests/gdscript_test_runner.cpp
index 01772a2e38..f91dc83f2c 100644
--- a/modules/gdscript/tests/gdscript_test_runner.cpp
+++ b/modules/gdscript/tests/gdscript_test_runner.cpp
@@ -149,7 +149,7 @@ GDScriptTestRunner::GDScriptTestRunner(const String &p_source_dir, bool p_init_l
// Set all warning levels to "Warn" in order to test them properly, even the ones that default to error.
ProjectSettings::get_singleton()->set_setting("debug/gdscript/warnings/enable", true);
for (int i = 0; i < (int)GDScriptWarning::WARNING_MAX; i++) {
- if (i == GDScriptWarning::UNTYPED_DECLARATION) {
+ if (i == GDScriptWarning::UNTYPED_DECLARATION || i == GDScriptWarning::INFERRED_DECLARATION) {
// TODO: Add ability for test scripts to specify which warnings to enable/disable for testing.
continue;
}