lpython icon indicating copy to clipboard operation
lpython copied to clipboard

`i: i32=5; sin(i)` should give an error message in interactive mode

Open certik opened this issue 1 year ago • 0 comments

>>> i: i32 = 5                                                           1,11  ]
>>> i                                                                    1,2   ]
5
>>> i + 6                                                                1,6   ]
11
>>> i**2                                                                 1,5   ]
25
>>> from math import sin                                                 1,21  ]
>>> sin(i)                                                               1,7   ]
>>>                                                                      1,1   ]
>>> sin(f32(i))                                                          1,12  ]
-0.95892429

The sin(i) should give an error message, but somehow it got swallowed.

certik avatar Jul 06 '24 14:07 certik