test: add more test & update snapshot

Signed-off-by: 11happy <soni5happy@gmail.com>
This commit is contained in:
11happy 2025-10-15 21:50:25 +05:30 committed by 11happy
parent 5ce7811b74
commit 472bf6ebfc
1 changed files with 13 additions and 0 deletions

View File

@ -30,4 +30,17 @@ invalid-syntax: annotated name `c` can't be global
15 | global c 15 | global c
16 | c: list[str] = [] 16 | c: list[str] = []
| ^ | ^
17 |
18 | d: int = 1
|
invalid-syntax: annotated name `d` can't be global
--> <filename>:21:5
|
19 | def f3():
20 | global d
21 | d: str
| ^
22 |
23 | e: int = 1
| |