Skip to content

The nim compiler doesn't report the error lines properly after 65535 lines #15165

@ghost

Description

Example

for i in `seq 1 70000`; do echo "echo 1" >> gg.nim; done
echo "let x: int = \"a\"" >> gg.nim
nim c -r gg.nim

Current Output

.../gg.nim(655535, 14) Error: type mismatch: got <string> but expected 'int'

Expected Output

.../gg.nim(70001, 14) Error: type mismatch: got <string> but expected 'int'
$ nim -v
Nim Compiler Version 1.2.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions