Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
I found a case, where getStackTrace() returns the line number of the raise statement inside the template definition, instead of the line number of the template instantiation.
Description
I found a case, where
getStackTrace()
returns the line number of theraise
statement inside the template definition, instead of the line number of the template instantiation.Test program:
Note: Without the
ìf
statement it works correct.Nim Version
Nim Compiler Version 2.0.4 [Linux: amd64] Compiled at 2024-03-28 Copyright (c) 2006-2023 by Andreas Rumpf
git hash: b47747d31844c6bd9af4322efe55e24fefea544c active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response