← 输入框|github.com|刷新
Skip to content

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

Closed

Description

@certik
>>> 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions