File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
docs/docs/reference/contextual Expand file tree Collapse file tree 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
1818
19191 . If an expression ` e ` has type ` T ` , and ` T ` does not conform to the expression's expected type ` S ` .
20202 . 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
2222 some member(s) named ` m ` , but none of these members can be applied to the arguments ` args ` .
2323
2424In 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
4141of the last section can also be expressed like this:
4242``` scala
4343implied for Ord [Int ] { ... }
44- implied [T : Ord ] for Ord [List [T ]] { ... }
44+ implied [T ] given ( ord : Ord [ T ]) for Ord [List [T ]] { ... }
4545```
4646If the name of an instance is missing, the compiler will synthesize a name from
4747the type(s) in the ` for ` clause.
You can’t perform that action at this time.
0 commit comments