Skip to content

Internal error in getTypeDescAux #13378

Closed
@Clyybber

Description

@Clyybber

This doesn't compile anymore
Removing one seq field from resource fixes it.

Example

type
  Resource = ref object of RootObj
    name: string
    readers, writers: seq[RenderTask]

  RenderTask = ref object
    name: string

var res = Resource(name: "Resource 1")

(proc (r: typeof(res)) =
   echo r[])(res)

Current Output

Error: internal error: getTypeDescAux(tyGenericParam)
Traceback (most recent call last)
...

Expected Output

Compilation successfull :)

Additional Information

  • It was working just a few days ago, I'm still figuring out what broke it..
  • This issue is blocking my project
$ nim -v
Nim Compiler Version #devel

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions