File tree 2 files changed +2
-2
lines changed
docs/docs/reference/contextual
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ An implicit conversion is applied automatically by the compiler in three situati
18
18
19
19
1 . If an expression ` e ` has type ` T ` , and ` T ` does not conform to the expression's expected type ` S ` .
20
20
2 . In a selection ` e.m ` with ` e ` of type ` T ` , but ` T ` defines no member ` m ` .
21
- 3 . In an application ` e.m(args) ` with ` e ` of type ` T ` , if `` T` does define
21
+ 3 . In an application ` e.m(args) ` with ` e ` of type ` T ` , if ` T ` does define
22
22
some member(s) named ` m ` , but none of these members can be applied to the arguments ` args ` .
23
23
24
24
In the first case, the compiler looks in the implied scope for a an instance of
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ The name of an implied instance can be left out. So the implied instance definit
41
41
of the last section can also be expressed like this:
42
42
``` scala
43
43
implied for Ord [Int ] { ... }
44
- implied [T : Ord ] for Ord [List [T ]] { ... }
44
+ implied [T ] given ( ord : Ord [ T ]) for Ord [List [T ]] { ... }
45
45
```
46
46
If the name of an instance is missing, the compiler will synthesize a name from
47
47
the type(s) in the ` for ` clause.
You can’t perform that action at this time.
0 commit comments