Skip to content

tests: error: compiler crash: replace or remove test case #139

@ee7

Description

@ee7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions