Skip to content

wac expects "instantiation" of type aliaes #152

Description

@leon-thomm

Hi, I noticed wac compose will fail if the world of the component I'm instantiating includes a type alias like so

world my-component {
    type my-alias = u32;
    export foo: func(x: my-alias) -> my-alias;
}

If I instantiate this in wac

let my-component = new wacdebug:my-component {};

it will fail

  × missing instantiation argument `my-alias` for package `wacdebug:my-component`
   ╭─[default.wac:3:24]
 2 │ 
 3 │ let my-component = new wacdebug:my-component {};
   ·                        ──────────┬──────────
   ·                                  ╰── missing argument `my-alias`
   ╰────

Instantiating a type alias makes no sense to me, it is not an import. Did I miss anything?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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