Skip to content

Commit 544e527

Browse files
committed
TEST: Use InOut in generics_02 test case
1 parent bf95670 commit 544e527

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integration_tests/generics_02.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
from lpython import TypeVar
1+
from lpython import TypeVar, InOut
22

33
T = TypeVar('T')
44

5-
def swap(x: T, y: T):
5+
def swap(x: InOut[T], y: InOut[T]):
66
temp: T
77
temp = x
88
x = y
99
y = temp
1010
print(x)
1111
print(y)
1212

13-
swap(1,2)
13+
swap(1,2)

0 commit comments

Comments
 (0)