Is the root package name "app" is not allowed?

My previous projects have started showing error, probably after lime update. All of them had root package named “app” and Document Class was app.Main :

The error says : has no field Main

After playing for sometime, i renamed “app” package to something else, and it works.
So, isn’t the package name “app” allowed ? Or am i misunderstanding the error ?

Does the error say what line number? This sounds like an edge case in how Haxe handles package vs. variable names

The error occurs in an automatically generated file called “ApplicatonMain.hx”. Screenshot attached :

Check above that line:

app = new openfl.display.Application ();

No wonder it misinterprets “app.Main”!

Just made a commit that I hope will help :smile: