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

Unexpected } when included function is last in class #50

Open
jcward opened this issue Nov 12, 2015 · 0 comments
Open

Unexpected } when included function is last in class #50

jcward opened this issue Nov 12, 2015 · 0 comments

Comments

@jcward
Copy link

jcward commented Nov 12, 2015

If an included function declaration is last in the class:

public class Foo {
  public function Foo():void { }
  include "shared_function.as";
}

It throws: Foo.as(4) : Unexpected }

If there is a function after it, it works fine:

public class Foo {
  public function Foo():void { }
  include "shared_function.as";
  public function bar() { ... }
}

Workaround: don't let an included function be last in the class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant