Skip to content

utils.Dereference can get stuck in an infinite loop #321

@mlevesquedion

Description

@mlevesquedion

When a type refers to itself through a pointer, utils.Dereference can get stuck in an infinite loop:

package test

type A *A

func test(a A) {
}

Running levee on this code hangs indefinitely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions