lpython
lpython copied to clipboard
Support `Literal` annotation
Fixes #1939
@rebcabin Literal[i32(0)] means that the actual runtime value of this variable can only be i32(0)?
This PR is a start on that, but we do not actually check this, so the implementation is not finished. Given that, should we give a warning that this is not enforced yet?
@rebcabin Can you please review this? Thanks
I am a little worried about adding types that we don't actually support yet.