Skip to content

Commit 4a49f45

Browse files
committed
TEST: Add test for func param assign
1 parent ed29d01 commit 4a49f45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/errors/test_assign9.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def f(x: i32) -> i32:
2+
x = 2
3+
return x * x
4+
5+
print(f(3)) # => 4

0 commit comments

Comments
 (0)