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

"duplicate access modifier public" when trying to use injection #312

Open
davidgiven opened this issue Apr 8, 2020 · 0 comments
Open

"duplicate access modifier public" when trying to use injection #312

davidgiven opened this issue Apr 8, 2020 · 0 comments

Comments

@davidgiven
Copy link

Trying to set up a boilerplate file using HexInject, I find that trying to declare an injector container just produces a "duplicate access modifier public" error:

import hex.di.IInjectorContainer;

class MockClass implements IInjectorContainer {}

class ServerMain {
        static public function main() {
        }
}

--->

$ haxe -cpp .obj/server-temp -debug -lib hexinject -main ServerMain
/usr/share/haxe/std/haxe/macro/Expr.hx:818: characters 2-10 : Duplicate access modifier public
ServerMain.hx:5: lines 5-9 : Defined in this class
/usr/share/haxe/std/haxe/macro/Expr.hx:818: characters 2-10 : Previously defined here
ServerMain.hx:5: lines 5-9 : Defined in this class
$ haxe --version
4.0.5

Is there anything obvious I'm doing wrong here?

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