File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
docs/docs/reference/metaprogramming Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -697,10 +697,13 @@ Sometimes it is necessary to get a more precise type for an expression. This can
697
697
def f (exp : Expr [Any ]) =
698
698
expr match
699
699
case ' { $x : $t } =>
700
- // There there exists some local `type T` for which we have `x: Expr[T]` and a `given t: Type[T]`
700
+ // If the pattern match succeeds, then there is some type `T` such that
701
+ // - `x` is bound to a variable of type `Expr[T]`
702
+ // - `t` is bound to a given instance of type `Type[T]`
703
+ // That is, we have `x: Expr[T]` and `given t: Type[T]`, for some (unknown) type `T`.
701
704
```
702
705
703
- This might be used to then prerorm an implicit search as in:
706
+ This might be used to then perform an implicit search as in:
704
707
705
708
706
709
``` scala
You can’t perform that action at this time.
0 commit comments