LPython should give an error message:
x: i32[4, 5, 2] =empty([4, 5, 2])
y: f64[24, 100, 2, 5] =empty([24, 100, 2, 5])
Since in CPython the arrays would be both float (?) arrays of the default kind. Instead, it needs to enforce something like this:
fromnumpyimportint32, float64x: i32[4, 5, 2] =empty([4, 5, 2], dtype=int32)
y: f64[24, 100, 2, 5] =empty([24, 100, 2, 5], dtype=float64)
LPython should give an error message:
Since in CPython the arrays would be both float (?) arrays of the default kind. Instead, it needs to enforce something like this: