Skip to content

Commit 81a1184

Browse files
Amend doc
1 parent ee54814 commit 81a1184

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/pos/typeclass-encoding3b.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@ object functors {
347347
MonadFlatten.flattened(List(List(1, 2, 3), List(4, 5))) // ok, synthesizes (using ListMonad)
348348
MonadFlatten.flattened(List(List(1, 2, 3), List(4, 5)))(using ListMonad) // was an error
349349
/*
350-
When checking `ListMonad <:< functors.Monad.Impl[T]`
351-
we eventually get to the comparison `[X] =>> T[X] <:< [+X] =>> List[X]`
350+
Before the changes, when checking `ListMonad <:< functors.Monad.Impl[T]`
351+
we eventually got to the comparison `[X] =>> T[X] <:< [+X] =>> List[X]`
352352
because the `This` type member of `ListMonad` has a covariance annotation.
353-
This fails the variance conformance checks despite the fact that T has been instantiated to List,
354-
since it has been substituted into the refinement (and cached) before its instantiation.
353+
This failed the variance conformance checks despite the fact that T had been instantiated to List,
354+
since it had been substituted into the refinement (and cached) before its instantiation.
355355
*/
356356
}

0 commit comments

Comments
 (0)