COMMUNITY

What does this error mean?


(Chrisvelevitch) #1

I’m new to Haxe 3.4.4 and I’m getting this compile error:-

<myClassName> is not ready to be accessed, separate your type declarations in several files

What does this mean and how do I fix it?


(Michael Solomon) #2

which code make this error? what the targeted language?


(Chrisvelevitch) #3

I’m compiling with openFl and targeting HTML5 and the line in my 3859 line class is at the class declaration itself (see below):-

class FeathersControl extends Sprite implements IFeathersControl implements ILayoutDisplayObject
{

(Juraj Kirchheim) #4

It usually means there are some macros at work that access classes in an order that confuses the typer. It’s most likely an OpenFl problem, so the best course of action would be to produce a minimal example and submit it on the OpenFl issue tracker.


#5

I am not 100% sure, but I think you can not have implements twice?

Shouldn’t it be:

class FeathersControl extends Sprite implements IFeathersControl, ILayoutDisplayObject

(Jens Fischer) #6

@mak No, using a comma there would be invalid syntax (https://try.haxe.org/#a16C4).


#7

@Gama11 Thx… than sorry for spamming :wink:

plz ignore