You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
GDScript: Fix warning ignoring for member variables
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# GH-72135
|
||||
|
||||
var _a
|
||||
@warning_ignore("unused_private_class_variable")
|
||||
var _b
|
||||
@warning_ignore("unused_private_class_variable") var _c
|
||||
var _d
|
||||
|
||||
func test():
|
||||
pass
|
||||
@@ -0,0 +1,9 @@
|
||||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 3
|
||||
>> UNUSED_PRIVATE_CLASS_VARIABLE
|
||||
>> The class variable "_a" is declared but never used in the script.
|
||||
>> WARNING
|
||||
>> Line: 7
|
||||
>> UNUSED_PRIVATE_CLASS_VARIABLE
|
||||
>> The class variable "_d" is declared but never used in the script.
|
||||
Reference in New Issue
Block a user