nim-works / nimskull

An in development statically typed systems programming language; with sustainability at its core. We, the community of users, maintain it.

Home Page:https://nim-works.github.io/nimskull/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Self-referencing distinct will cause the compiler to hang

alaviss opened this issue · comments

Example

type Id = distinct Id

Actual Output

The compiler stuck at 100% CPU usage

Expected Output

Some errors about self-referencing

The linked PR fixed the bug -- an illegal recursion in type 'Id' error is now reported.