Branch: Binary
Build version: 4.6.0 - 1269412
Wildcard reroute nodes don’t propgate data types properly. So, if you create at least two wildcard reroute nodes, you can wire last node into input of any node type, without them reroute nodes and wires gaining a type. If you then connect a typed wire into first wildcard node, it doesn’t update that node’s type or following wire. I found this because Select will create wildcard reroute nodes until it has been given a type by one of Option inputs.
It’s not just a visual bug; compiling with wildcard wires connected to a node will throw an error about type being undetermined.
Reproduction
- Add reroute node.
- Drag from reroute node.
- Select ‘Add Reroute Node’.
- Drag from this reroute node to a
typed input node. - wire and nodes remain wildcards.
- Drag a typed input into one of the
wildcard node reroute nodes. - wire should show a typed color.
- reroute node and following wires
and reroute nodes will still be
wildcards.
- Add Select.
- Drag from Return Value.
- Select ‘Add Reroute Node’.
- Drag from reroute node to a typed
input node. - wire and nodes remain wildcards.
- Connecting a typed wire to input
Option nodes will type Return
Value wire. - reroute node and following wires
and reroute nodes will still be
wildcards.
Frequency: 100% with multiple data types tested.
Expected behavior
Connecting to a typed input should cause entire wire path and reroute nodes to gain a data type.