asedunov / intellij-crystal-lang

An IntelliJ plugin for Crystal language
Apache License 2.0
39 stars 5 forks source link

Check branch duplication in case-expressions #14

Closed asedunov closed 1 year ago

asedunov commented 2 years ago

Crystal compiler reports error when case-expressions contains duplicate conditions in when/in. For example the code above should be highlighted as red:

case x; when {1, 2}; 2; when {1, 2}; end