False errors when using cats library in IntelliJ
问题 I am using the cats Scala library and the IntelliJ IDE seems to be struggling with the use of implicits: Here is a simple example: import cats.std.all._ import cats.Traverse.ops._ def useSequence[A](ls : List[Option[A]]) : Option[List[A]] = { ls.sequence } In IntelliJ, this code is highlighted red. But I can build just fine using Make Project or the command line. Right now the error is: Expression of type Nothing[List[Nothing]] doesn't conform to expected type Option[List[A]] Other times the