diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-09-22 20:57:24 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2023-09-22 23:13:52 +0300 |
commit | 4ce27301d3baec04f8259db9a3bc5dacbe359304 (patch) | |
tree | 9c8331d23cf860da828fa921015adf9b5f79ddef /modules/gdscript/tests/gdscript_test_runner.cpp | |
parent | fe5b1c8d49313d63fbe91cb7cdf463e10fb86afa (diff) | |
download | redot-engine-4ce27301d3baec04f8259db9a3bc5dacbe359304.tar.gz |
GDScript: Add `INFERRED_DECLARATION` warning
Diffstat (limited to 'modules/gdscript/tests/gdscript_test_runner.cpp')
-rw-r--r-- | modules/gdscript/tests/gdscript_test_runner.cpp | 2 |
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; } |