Open
Description
repr
produces invalid code
Example
import macros
macro mdbg(a): untyped =
echo a.repr
parseStmt(a.repr)
mdbg:
let a = 1e1000000'f32
Current Output
let a = inf'f32
macros.nim(566, 14) Error: missing closing ' for character literal [ValueError]
Expected Output
works
Additional Information
- devel 754a196 1.3.5
I encountered this while working on a megatest for isMainModule blocks, which gathers isMainModule blocks from input files using parseStmt + repr (more details on this later)
Activity