Constraint check failure for haxe.ds.ObjectMap.K ?

73 views
Skip to first unread message

Damion Murray

unread,
Jun 1, 2015, 11:16:30 AM6/1/15
to haxe...@googlegroups.com
Since upgrading to Haxe 3.2.0 I keep getting a "Constraint check failure for haxe.ds.ObjectMap.K" for the following at lines 14 and 18; 


1  package;
2  import haxe.ds.ObjectMap;
3  class Graph<T> {
4
5     private var _outbound:ObjectMap<GraphArc, GraphNode<T>>;
6     private var _inbound:ObjectMap<GraphArc, GraphNode<T>>;
7
8
9     // A multi-key map where source and target nodes are keys and a grapharc instance is the value
10    private var srcTargetMap:ObjectMap<GraphNode<T>, ObjectMap<GraphNode<T>, GraphArc>>;
11
12
13    // Content to node map
14    private var contentNodeMap:ObjectMap<T, GraphNode<T>>;
15
16
17    public function new() {
18        srcTargetMap = new ObjectMap<GraphNode<T>, ObjectMap<GraphNode<T>, GraphArc>>();
19        contentNodeMap = new ObjectMap<T, GraphNode<T>>();
20        _outbound = new ObjectMap<GraphArc, GraphNode<T>>();
21        _inbound = new ObjectMap<GraphArc, GraphNode<T>>();
22    }
23
24
25 }


Not sure why this is happening.


Damion Murray

unread,
Jun 3, 2015, 3:10:19 PM6/3/15
to haxe...@googlegroups.com
Has anyone else been having this issue?

Mark Knol

unread,
Jun 3, 2015, 3:57:23 PM6/3/15
to haxe...@googlegroups.com
I can reproduce it http://try.haxe.org/#8Ac38

You might want to raise an issue over here: 

Damion Murray

unread,
Jun 4, 2015, 8:31:46 AM6/4/15
to haxe...@googlegroups.com
I had hoped it was something wrong on my part (I really need this to work). Oh well I'll report it. Thank's for the verification Mark.


On Monday, June 1, 2015 at 11:16:30 AM UTC-4, Damion Murray wrote:

Damion Murray

unread,
Jun 4, 2015, 8:46:08 AM6/4/15
to haxe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages