Skip to content

Can't define types as resources #601

@brson

Description

@brson

The following doesn't work:

type rtype = resource(int i);

Then I would expect to be able to:

resource r1(int i) {};
resource r2(int i) {};

let rtype i1 <- r1(0);
let rtype i2 <- r2(0);

Currently I don't see any way to make polymorphic resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions