code generation error: Type number '19' not supported
code generation error: Type number '19' not supported --> input.txt:4:1 | 4 | h = TypeVar("h") | ^^^^^^^^^^^^^^^^
Could you please post the full code?
I believe I found the minimal working code for this @kmr-srbh
main.py
T = TypeVar("h")
$ lpython main.py --show-cpp
code generation error: Type number '19' not supported
--> main.py:1:1
|
1 | T = TypeVar("h")
| ^^^^^^^^^^^^^^^^
I came across it while seeing how c/c++ backend code works
main.py
a: set[i32]
$ lpython test.py --show-c
code generation error: Type number '7' not supported
--> main.py:1:1
|
1 | a: set[i32]
| ^^^^^^^^
Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
$ lpython test.py --show-cpp
code generation error: Type number '7' not supported
--> main.py:1:1
|
1 | a: set[i32]
| ^^^^^^^^
Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
It seems to be a simple issue I assume the code prints the type directly without using the to_str util ill write a fix and open a PR for it
I assume this was written before the util since the Type number x makes it look intentional
Closed PR should be fixed after ASR sync then we can close this issue