We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f8bc43 commit f81c443Copy full SHA for f81c443
docs/docs/reference/changed/implicit-conversions.md
@@ -31,16 +31,16 @@ its type checking because this turns out to be more efficient).
31
32
In summary, previous code using implicit conversion parameters such as
33
34
- def useConversion(implicit f: A => B) {
+ def useConversion(implicit f: A => B) = {
35
val y: A = ...
36
val x: B = a // error under Dotty
37
}
38
39
is no longer legal and has to be rewritten to
40
41
- def useConversion(implicit f: ImplicitConverter[A, B]) {
+ def useConversion(implicit f: ImplicitConverter[A, B]) = {
42
43
- val x: B = a // OK
+ val x: B = y // OK
44
45
46
### Reference
0 commit comments