Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when struct embeds exactly one reference #60

Closed
sdboyer opened this issue Aug 1, 2022 · 0 comments · Fixed by #95
Closed

Error when struct embeds exactly one reference #60

sdboyer opened this issue Aug 1, 2022 · 0 comments · Fixed by #95
Assignees
Labels
kind/bug Something isn't working

Comments

@sdboyer
Copy link
Contributor

sdboyer commented Aug 1, 2022

Embedding a single reference in a struct:

ref: {
  foo: string
} @cuetsy(kind="interface")

t: {
  ref
} @cuetsy(kind="interface")

Should result in...well, i'm not actually completely sure what this should result in, but this seems reasonable:

export interface ref {
  foo: string;
}

export interface t extends ref {}

However, the right outcome probably depends on the @cuetsy-specified kind.

Whatever the desirable output for each kind-case, none of them happen today. Instead, an error with the following super-helpful string is returned:

not a reference

This needs le fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants