Adds a test that covers the previous error, and moves the standalone msg test into it's own case.
Closes #1141
Additionally I noticed and fixed that foo = int(1) translates to auto foo = int(1); rather than what I expected auto foo = static_cast<int>(1);. The existing cast code only looked for numpy type casting (which is handled differently as the AST sees it as a member function).
Adds a test that covers the previous error, and moves the standalone msg test into it's own case.
Closes #1141
Additionally I noticed and fixed that
foo = int(1)
translates toauto foo = int(1);
rather than what I expectedauto foo = static_cast<int>(1);
. The existing cast code only looked fornumpy
type casting (which is handled differently as the AST sees it as a member function).