mirror of
https://github.com/sbt/sbt.git
synced 2026-09-01 02:27:13 +02:00
The State file in intellij was littered with red squiggly lines wherever the extension methods of State called a different extension method of State. These went away when I switched to an implicit class, which is the preferred way of adding extension methods since scala 2.10. As a bonus, I was able to switch the implicit class to be a value class, so it should not actually make a new object in most use cases. I had to re-implement the stateOps method to delegate to the implicit class for binary compatibility.