You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One would expect that the rule category_is_empty wouldn't be matched, since category was defined to be equal to "http". However, the rule does get matched.
If you remove the second definition, the code works as intended.
The text was updated successfully, but these errors were encountered:
CapacitorSet
changed the title
Defining the same variable twice leads to different behaviours
Defining the same variable twice leads to incorrect behaviour
Jul 8, 2018
CapacitorSet
changed the title
Defining the same variable twice leads to incorrect behaviour
Defining the same variable twice results in incorrect behaviour
Jul 8, 2018
I found that if I define the same variable twice in the compiler, scanning gives incorrect results.
Here's a minimal testcase:
One would expect that the rule
category_is_empty
wouldn't be matched, sincecategory
was defined to be equal to"http"
. However, the rule does get matched.If you remove the second definition, the code works as intended.
The text was updated successfully, but these errors were encountered: