File tree 2 files changed +4
-4
lines changed
docs/docs/reference/changed 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).
31
31
32
32
In summary, previous code using implicit conversion parameters such as
33
33
34
- def useConversion(implicit f: A => B) {
34
+ def useConversion(implicit f: A => B) = {
35
35
val y: A = ...
36
36
val x: B = a // error under Dotty
37
37
}
38
38
39
39
is no longer legal and has to be rewritten to
40
40
41
- def useConversion(implicit f: ImplicitConverter[A, B]) {
41
+ def useConversion(implicit f: ImplicitConverter[A, B]) = {
42
42
val y: A = ...
43
- val x: B = a // OK
43
+ val x: B = y // OK
44
44
}
45
45
46
46
### Reference
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ title: "Changes in Implicit Resolution"
4
4
---
5
5
6
6
Implicit 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
8
8
affect implicits on the language level.
9
9
10
10
1 . Types of implicit values and result types of implicit methods
You can’t perform that action at this time.
0 commit comments