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
-- Error: /tmp/scastie6251223766744740367/src/main/scala/main.scala:16:29 ------
16 | val a = eqCofree[List, Int]
| ^
|no implicit argument of type implicit Main.Eq[Int] => Main.Eq[List[Int]] was found for parameter S of method eqCofree in object Main.
|I found:
|
| {
| def $anonfun(implicit evidence$4: Main.Eq[Int]): Main.Eq[List[Int]] =
| {
| def $anonfun(evidence$1: Main.Eq[Any]): Main.Eq[List[Any]] =
| Main.forList[Any](evidence$1)
| closure($anonfun)
| }
| closure($anonfun)
| }
|
|But method forList in object Main does not match type implicit Main.Eq[Int] => Main.Eq[List[Int]]
but if you use eqCofree(intEq, forList), it compiles.
The text was updated successfully, but these errors were encountered:
This fails with:
but if you use
eqCofree(intEq, forList)
, it compiles.The text was updated successfully, but these errors were encountered: