Skip to content

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Oct 13, 2025

fixes #25048

proc canFormAcycleAux =
  of tyObject:
    # Inheritance can introduce cyclic types, however this is not relevant
    # as the type that is passed to 'new' is statically known!
    # er but we use it also for the write barrier ...
    if tfFinal notin t.flags:
      # damn inheritance may introduce cycles:
      result = true

It seems that all objects without tfFinal in their flags are registering cycles. It doesn't seem that Env can be a cyclic type because of inheritance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Closure environement wrongly marked as cyclic (orc)

1 participant