diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-26 01:07:00 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-26 01:07:00 +0100 |
commit | a5c211641f445cfe1a70260a80cbb6b8a37e984b (patch) | |
tree | c6afe14f98644c10ae48c9ca7841c664697be010 /modules/gdscript/tests/scripts/runtime/features/standalone-calls-do-not-write-to-nil.gd | |
parent | cb8aeca1caff50459d319072904201e0f63bf768 (diff) | |
parent | b004f8180e37d1d3a6f06bb5f7f6992b8f0ad5d2 (diff) |
Merge pull request #71634 from dalexeev/gds-annotations-analyzer
GDScript: Allow constant expressions in annotations
Diffstat (limited to 'modules/gdscript/tests/scripts/runtime/features/standalone-calls-do-not-write-to-nil.gd')
-rw-r--r-- | modules/gdscript/tests/scripts/runtime/features/standalone-calls-do-not-write-to-nil.gd | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/gdscript/tests/scripts/runtime/features/standalone-calls-do-not-write-to-nil.gd b/modules/gdscript/tests/scripts/runtime/features/standalone-calls-do-not-write-to-nil.gd index cc34e71b01..2f55059334 100644 --- a/modules/gdscript/tests/scripts/runtime/features/standalone-calls-do-not-write-to-nil.gd +++ b/modules/gdscript/tests/scripts/runtime/features/standalone-calls-do-not-write-to-nil.gd @@ -20,26 +20,26 @@ func test_utility(v, f): assert(not f) # Test unary operator reading from `nil`. func test_builtin_call(v, f): - @warning_ignore(unsafe_method_access) + @warning_ignore("unsafe_method_access") v.angle() # Built-in method call. assert(not f) # Test unary operator reading from `nil`. func test_builtin_call_validated(v: Vector2, f): - @warning_ignore(return_value_discarded) + @warning_ignore("return_value_discarded") v.abs() # Built-in method call validated. assert(not f) # Test unary operator reading from `nil`. func test_object_call(v, f): - @warning_ignore(unsafe_method_access) + @warning_ignore("unsafe_method_access") v.get_reference_count() # Native type method call. assert(not f) # Test unary operator reading from `nil`. func test_object_call_method_bind(v: Resource, f): - @warning_ignore(return_value_discarded) + @warning_ignore("return_value_discarded") v.duplicate() # Native type method call with MethodBind. assert(not f) # Test unary operator reading from `nil`. func test_object_call_ptrcall(v: RefCounted, f): - @warning_ignore(return_value_discarded) + @warning_ignore("return_value_discarded") v.get_reference_count() # Native type method call with ptrcall. assert(not f) # Test unary operator reading from `nil`. |