Main.hx 307 B

12345678910111213141516
  1. // Main.hx
  2. import haxe.Constraints.IMap;
  3. import haxe.ds.IntMap;
  4. @:multiType(K)
  5. abstract Dictionary<K, V>(IMap<K, V>) {
  6. public function new();
  7. @:to static function toIntMap<K:Int, V>(t:IMap<K, V>):IntMap<V> {
  8. return new IntMap<V>();
  9. }
  10. }
  11. function main() {
  12. final dict = new Dictionary<Int, Bool>();
  13. }