Skip to content

Commit 0092d92

Browse files
committed
Fix docs
1 parent d181555 commit 0092d92

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/src/scala/tasty/reflect/IsInstanceOf.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package reflect
99
type Idx
1010
given ClassTag[Nat]
1111
given ClassTag[Succ]
12-
given ClassTag[Z]
12+
given ClassTag[Idx]
1313
def n: Nat
1414
}
1515
object RI extens R {
@@ -28,10 +28,10 @@ package reflect
2828
}
2929
val r1: R = RI
3030
val r2: R = RI
31-
r1.x match {
32-
case x: r2.Nat => // Should not match or should have an unchecked waring
33-
case x: r1.Idx => // Should not match or should have an unchecked waring
34-
case x: r1.Succ => // Should match only if r1.x is an r1.Succ under the constraints set in r1
31+
r1.n match {
32+
case n: r2.Nat => // Should not match or should have an unchecked waring
33+
case n: r1.Idx => // Should not match or should have an unchecked waring
34+
case n: r1.Succ => // Should match only if r1.n is an r1.Succ under the constraints set in r1
3535
}
3636
```
3737
*/

0 commit comments

Comments
 (0)