Allow using built-in names for variables, push warnings instead
This commit is contained in:
@ -0,0 +1,2 @@
|
||||
func test():
|
||||
var abs = "This variable has the same name as the built-in function."
|
||||
@ -0,0 +1,9 @@
|
||||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 2
|
||||
>> SHADOWED_GLOBAL_IDENTIFIER
|
||||
>> The local variable 'abs' has the same name as a built-in function.
|
||||
>> WARNING
|
||||
>> Line: 2
|
||||
>> UNUSED_VARIABLE
|
||||
>> The local variable 'abs' is declared but never used in the block. If this is intended, prefix it with an underscore: '_abs'
|
||||
Reference in New Issue
Block a user