Our short Nim compiler crash case has "unfortunately" been fixed, so we'll have to replace or remove the below test case when we update to the upcoming Nim 2.0.
|
func identity*(n: int): int = |
|
# Trigger a crash. See https://github.com/nim-lang/Nim/issues/11684 |
|
for _ in []: |
|
discard |
The test is not really that important.
type foo = distinct foo is also no longer a crash: nim-lang/Nim@a895bbf
Our short Nim compiler crash case has "unfortunately" been fixed, so we'll have to replace or remove the below test case when we update to the upcoming Nim 2.0.
nim-test-runner/tests/error/compiletime_crash_in_solution/identity.nim
Lines 1 to 4 in b4de49b
The test is not really that important.
type foo = distinct foois also no longer a crash: nim-lang/Nim@a895bbf