diff options
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/errors/invalid_array_index.gd')
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/errors/invalid_array_index.gd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/errors/invalid_array_index.gd b/modules/gdscript/tests/scripts/analyzer/errors/invalid_array_index.gd new file mode 100644 index 0000000000..b8c0b7a8d3 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/errors/invalid_array_index.gd @@ -0,0 +1,3 @@ +func test(): + # Error here. Array indices must be integers. + print([0, 1][true]) |