HeapsIO / domkit

CSS Components based strictly typed UI framework for Haxe
MIT License
84 stars 20 forks source link

Issue with for iterator #23

Open ncannasse opened 4 years ago

ncannasse commented 4 years ago
<h-hud>
            <bitmap class="f" src={icon} if( icon != null )/>
            <flow class="hp">
                for( i in 0...4 )
                    <icon(Hp) class={((i >= hp) ? "grey" : "")}/>
            </flow>
</h-hud>

This does not work (Cannot use Void as value), because of 0...4 it seems