Skip to content

Commit 3d2d086

Browse files
vincenzobazb-studios
authored andcommitted
Address review
1 parent 32f74a9 commit 3d2d086

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

_overviews/scala3-macros/tutorial/reflection.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,15 @@ def f(tpe: TypeRepr) =
6161
```
6262

6363
Remember also that `TypeBounds <: TypeRepr`, therefore all the methods defined in `TypeReprMethods` are
64-
avaialble on `TypeBounds` values.
64+
available on `TypeBounds` values as in:
65+
66+
```scala
67+
def f(tpe: TypeRepr) =
68+
tpe match
69+
case tpe: TypeBounds =>
70+
val low = tpe.low
71+
val hi = tpe.hi
72+
```
6573

6674
## Relation with Expr/Type
6775

0 commit comments

Comments
 (0)