Skip to content

Accessing member of instantiated template does not work. Doing so through an alias does work. #1163

@johanste

Description

@johanste
model M<T> {
  x: string;
  ...T;
}

alias MEmpty = M<{}>;

model D {
  d1: MEmpty.x; // <-- works!
  d2: M<{}>.x; // <-- error token-expected ';' expected. (squiggly under '.')
}

playground

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions