Skip to content

"Extern non-inline variables may not be initialized" in GraphicsPathCommand #4359

Closed
@boozook

Description

When compile with --gen-hx-classes get an error for flash.display.GraphicsPathCommand.

Error:

/usr/lib/haxe/std/flash/display/GraphicsPathCommand.hx
Error:(7, 41) Extern non-inline variables may not be initialized

build.hxml:

-main Main
-cp src
-dce no
-swf out/Main.swf

-swf-lib /Users/ak/Developer/Flash/sdk/air18_sdk_mac/frameworks/libs/player/18.0/playerglobal.swc
-swf-lib /Users/ak/Developer/Flash/sdk/air18_sdk_mac/frameworks/libs/air/airglobal.swc
--gen-hx-classes

With monkey-fix work fine:

package flash.display;

extern class GraphicsPathCommand {
    public static /*inline*/ var LINE_TO;// = 2;
    public static /*inline*/ var MOVE_TO;// = 1;
    public static /*inline*/ var CURVE_TO;// = 3;
    @:require(flash11) public static /*inline*/ var CUBIC_CURVE_TO;// = 6;
    public static /*inline*/ var WIDE_LINE_TO;// = 5;
    public static /*inline*/ var WIDE_MOVE_TO;// = 4;
    public static /*inline*/ var NO_OP;// = 0;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions