intel/dml-language-server

Parser is confusing tokens for 'default' in a switch case with the 'default()' method call when inside a method that has a default implementation

jvsqzj opened this issue · 3 comments

jvsqzj commented

This bug was found by a user who noticed this incorrectly reported syntax error in a switch case statement:
image

image

This should not be flagged as a syntax error, as its inconsistent with the DML compiler. The error reports it was expecting : for the switch case but the image shows the colon is already present where its supposed to be.

jvsqzj commented

Thanks, I'll test this locally and verify its resolved.

Do we want to close this issue after verification that or will you close it once a release is made?

Thanks, I'll test this locally and verify its resolved.

Do we want to close this issue after verification that or will you close it once a release is made?

Since releases are not being made from this repo atm. I will close once it's verified as fixed.

This seems to be resolved on my local testing. Closing. Thanks