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

Struct containing pointer to self #39

Closed
travisdoor opened this issue Apr 6, 2019 · 0 comments
Closed

Struct containing pointer to self #39

travisdoor opened this issue Apr 6, 2019 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@travisdoor
Copy link
Collaborator

Structures containing pointer to "self" type cannot be resolved by compiler.

Example:

Foo :: struct {
    foo: *Foo
};

Output:

error: [E0018] test.bl:8:11 Unknown symbol.
  7 |     a: s32,
  8 |     foo: *Foo
    |           ^^^
  9 | };
@travisdoor travisdoor added the bug Something isn't working label Apr 6, 2019
@travisdoor travisdoor added this to the 0.5.1 milestone Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant