File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
docs/docs/reference/changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,16 @@ its type checking because this turns out to be more efficient).
3131
3232In summary, previous code using implicit conversion parameters such as
3333
34- def useConversion(implicit f: A => B) {
34+ def useConversion(implicit f: A => B) = {
3535 val y: A = ...
3636 val x: B = a // error under Dotty
3737 }
3838
3939is no longer legal and has to be rewritten to
4040
41- def useConversion(implicit f: ImplicitConverter[A, B]) {
41+ def useConversion(implicit f: ImplicitConverter[A, B]) = {
4242 val y: A = ...
43- val x: B = a // OK
43+ val x: B = y // OK
4444 }
4545
4646### Reference
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ title: "Changes in Implicit Resolution"
44---
55
66Implicit resolution uses a new algorithm which caches implicit results
7- more aggressively for perforance . There are also some changes that
7+ more aggressively for performance . There are also some changes that
88affect implicits on the language level.
99
1010 1 . Types of implicit values and result types of implicit methods
You can’t perform that action at this time.
0 commit comments