ghostbuster91 / scalafix-unified

5 stars 2 forks source link

Fix Nil handling in extract and complicated case #4

Closed strokyl closed 2 years ago

strokyl commented 2 years ago

Before val a::Nil = List(1) was rewritten to val List.empty::Nil = List(1)

case Nil|Nil => was rewritten to case List.empty|List.empty

and case (a, List(Nil)) => was rewritten to case (a, List(List.empty))

ghostbuster91 commented 2 years ago

Awesome, thanks!