Skip to content

Commit 805a2d7

Browse files
Merge pull request #6694 from Bunyod/patch-1
Update higher-kinded-v2
2 parents eb27b4a + b6eb102 commit 805a2d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/docs/internals/higher-kinded-v2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ more than one type parameter. For instance, here is a trait with contravariant
213213
and covariant type parameters:
214214

215215
```scala
216-
trait Lambda$NP[type -$hkArg$0, +$hkArg1] { type +Apply } extends Lambda$IP with Lambda$NI
216+
trait Lambda$NP[type -$hkArg$0, +$hkArg$1] { type +Apply } extends Lambda$IP with Lambda$NI
217217
```
218218

219219
Aside: the `+` prefix in front of `Apply` indicates that `Apply` is a covariant
@@ -225,9 +225,9 @@ subtypes of traits which don't. The supertraits of `Lambda$NP` would themselves
225225
be written as follows.
226226

227227
```scala
228-
trait Lambda$IP[type $hkArg$0, +$hkArg1] { type +Apply } extends Lambda$II
229-
trait Lambda$NI[type -$hkArg$0, $hkArg1] { type +Apply } extends Lambda$II
230-
trait Lambda$II[type $hkArg$0, $hkArg1] { type +Apply }
228+
trait Lambda$IP[type $hkArg$0, +$hkArg$1] { type +Apply } extends Lambda$II
229+
trait Lambda$NI[type -$hkArg$0, $hkArg$1] { type +Apply } extends Lambda$II
230+
trait Lambda$II[type $hkArg$0, $hkArg$1] { type +Apply }
231231
```
232232

233233
`Lambda` traits are special in that they influence how type applications are
@@ -313,7 +313,7 @@ The type parameters of `Rep` are the type parameters of its upper bound, so
313313
More generally, a higher-kinded type declaration
314314

315315
```scala
316-
type T[v1 X1 >: S1 <: U1, ..., vn XN >: S1 <: UN] >: SR <: UR
316+
type T[v1 X1 >: S1 <: U1, ..., vn XN >: SN <: UN] >: SR <: UR
317317
```
318318

319319
is encoded as

0 commit comments

Comments
 (0)