Skip to content

Cyclic type definitions with forward declarations #4

@gancherj

Description

@gancherj
locality alice

type t
type s = t

type t = s

def main(x : t) @ alice : Unit = 
    let y : t = x in 
    ()

The above code loops the type checker. We need to do a dependency analysis to ensure the absence of cycles.

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