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

Compile error when declaring alias after usage #11

Open
ssrmm opened this issue Sep 13, 2016 · 0 comments
Open

Compile error when declaring alias after usage #11

ssrmm opened this issue Sep 13, 2016 · 0 comments
Labels

Comments

@ssrmm
Copy link
Contributor

ssrmm commented Sep 13, 2016

The following code produced the compiler-error error : Unbound name 'Bar':

namespace Test
{
  syntax module Test
  {
    using Nitra.Core;

    token Foo = "ASDF";

    token MultipleBar = Bar+;

    alias Bar = Foo;
  }
}

If I switch the rules MultipleBar and Bar everything works fine.

@ssrmm ssrmm changed the title Compile Error when declaring alias after usage Compile error when declaring alias after usage Sep 13, 2016
@VladD2 VladD2 added the bug label Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants