rainlanguage / dotrain

.rain to rainlang composer and rain language server protocol services
3 stars 4 forks source link

dotrain doesn't error on binding collision #128

Closed thedavidmeister closed 4 months ago

thedavidmeister commented 4 months ago

Motivation

I bound some bindings

Screenshot 2024-05-22 at 15 52 15

but they get treated as unbound and so set to 0 values

Screenshot 2024-05-22 at 15 52 36

This 0 binding should only happen for elided/unbound bindings.

Solution

Preserve the binding for bound bindings.

thedavidmeister commented 4 months ago

ok so the issue here is actually when you define the same binding twice there's no error for that

i had one binding bound and one binding elided for the same #raindex-subparser and dotrain didn't complain about the collision