Skip to content

Multiple similar use directives across different imported files in Composable Schemas cause errors #2778

@tstirrat15

Description

@tstirrat15

If you've got:

use expiration

import "./foo.zed"

definition resource {}

in one file and then this in foo.zed:

use expiration

definition user {}

The compiler will yell at you about multiple use expiration directives. The "normal" behavior for use directives in other languages is that they apply to the file, not to the entire bundled whole, but that's not the way our system behaves.

The simplest way to do this is likely to allow for duplicates and then merge them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions