Skip to content

[Graphics.hx] 'default' is a Haxe keyword, needs to be replaced to prevent compile errors #5

@kevansevans

Description

@kevansevans

On line 86 of the generated Graphics.hx, the following line causes a compile failure in Haxe:

@:overload(function (default: DefaultShader, ?options: lua.Table<Dynamic, Dynamic>): Shader {})

default is a reserved keyword to describe getter/setter behavior and switch statement fallback in Haxe. Easiest solution to this would be to generate a different argument name, changing it to _default solved the issue for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions