File tree 1 file changed +5
-5
lines changed
library/src/scala/tasty/reflect
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ package reflect
9
9
type Idx
10
10
given ClassTag[Nat]
11
11
given ClassTag[Succ]
12
- given ClassTag[Z ]
12
+ given ClassTag[Idx ]
13
13
def n: Nat
14
14
}
15
15
object RI extens R {
@@ -28,10 +28,10 @@ package reflect
28
28
}
29
29
val r1: R = RI
30
30
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
35
35
}
36
36
```
37
37
*/
You can’t perform that action at this time.
0 commit comments