Skip to content

Conditionalized class declaration with constraints #431

@Gama11

Description

@Gama11

Not even syntax highlighting can deal with this properly, so this may not be very high-priority. :)

#if (haxe_ver >= "4.0.0")
class FlxTypedEmitter<T:FlxSprite & IFlxParticle> extends FlxTypedGroup<T>
#else
class FlxTypedEmitter<T:(FlxSprite, IFlxParticle)> extends FlxTypedGroup<T>
#end
{}

turns into:

#if (haxe_ver >= "4.0.0")
class FlxTypedEmitter<T:FlxSprite & IFlxParticle> extends FlxTypedGroup<T>
#else
class FlxTypedEmitter<T:(FlxSprite, IFlxParticle) > extends FlxTypedGroup<T>
#end
{}

(note the space that's inserted before the >)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingemptylinesmissing or incorrect empty line

    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