You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala> object Wuffles
defined module Wuffles
scala> (Some(Wuffles): Option[Wuffles.type]) match { case Some(Wuffles) => println("Woof"); case _ => println("Meow") }
<console>:10: error: pattern type is incompatible with expected type;
found : object Wuffles
required: Wuffles.type
(Some(Wuffles): Option[Wuffles.type]) match { case Some(Wuffles) => println("Woof"); case _ => println("Meow") }
^
The complaint is seems to be that Wuffles is not of Wuffles.type, but then
The complaint is seems to be that Wuffles is not of Wuffles.type, but then
It seems to have a workaround:
The text was updated successfully, but these errors were encountered: