Skip to content

Commit 6b270c0

Browse files
committed
Fix tests for variable redeclaration
1 parent 67c1c30 commit 6b270c0

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

integration_tests/array_expr_02.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from lpython import i32, f32, TypeVar
22
from numpy import empty, sqrt, float32
33

4-
n: i32
54
n = TypeVar("n")
65

76
def modify(array_a: f32[:], n: i32) -> f32[n]:

integration_tests/generics_array_02.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from lpython import TypeVar, restriction, i32, f32
22
from numpy import empty
33

4-
n: i32
54
n = TypeVar("n")
65
T = TypeVar('T')
76

integration_tests/generics_array_03.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from lpython import TypeVar, restriction, i32, f32
22
from numpy import empty
33

4-
n: i32
54
n = TypeVar("n")
6-
m: i32
75
m = TypeVar("m")
86
T = TypeVar('T')
97

integration_tests/test_numpy_02.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
eps: f64
1313
eps = 1e-12
1414

15-
n: i32
1615
n = TypeVar("n")
1716

1817
def zeros(n: i32) -> f64[n]:
@@ -126,7 +125,6 @@ def fabs(f: f64) -> f64:
126125
def fabs(b: bool) -> f64:
127126
return sqrt(b)
128127

129-
num: i32
130128
num = TypeVar("num")
131129
def linspace(start: f64, stop: f64, num: i32) -> f64[num]:
132130
A: f64[num]

0 commit comments

Comments
 (0)