ink
ink copied to clipboard
Can't correctly divert to a stitch using a parameter
This one's a little hard to explain, but the sample code should illustrate the issue.
<- goToStitch(-> knot)
=== goToStitch(-> divert)
<- knot.stitch2
<- divert.stitch2
=== knot
= stitch1
1!
= stitch2
2!
Expected output:
2!
2!
Actual output:
2!
1!
I believe this is caused by Ink diverting to the knot, and falling through to the first stitch, ignoring the request to jump to a stitch. If you add text before the first stitch, Ink will display this instead.
<- divert.stitch2
should generate a compiler error.