Fix incomplete shadowing of member properties by parameters

This commit is contained in:
Dmitrii Maganov
2022-12-05 20:24:11 +02:00
parent f3e6750a7e
commit 97280279ee
4 changed files with 50 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
GDTEST_OK
>> WARNING
>> Line: 5
>> SHADOWED_VARIABLE
>> The local function parameter "a" is shadowing an already-declared variable at line 3.
>> WARNING
>> Line: 15
>> SHADOWED_VARIABLE
>> The local function parameter "v" is shadowing an already-declared variable at line 13.
a
1
b
1
(1, 1)
(0, 0)
(6, 1)
(0, 0)