We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7736db5 commit 928a9edCopy full SHA for 928a9ed
integration_tests/test_list_11.py
@@ -1,5 +1,12 @@
1
from lpython import i32
2
3
+l: list[i32] = [1, 2]
4
+
5
+def add_item(i: i32) -> list[i32]:
6
+ l.append(i)
7
+ return l
8
9
10
def return_empty_list_of_tuples() -> list[i32]:
11
return []
12
@@ -20,12 +27,6 @@ def test_iterate_over_string():
20
27
i+=1
21
28
22
29
def test_issue_2639():
23
- l: list[i32] = [1, 2]
24
-
25
- def add_item(i: i32) -> list[i32]:
26
- l.append(i)
- return l
30
print(add_item(3))
31
32
assert len(l) == 3
0 commit comments