Skip to content

Commit f81c443

Browse files
authored
fixo
convert from procedure to function :)
1 parent 6f8bc43 commit f81c443

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/reference/changed/implicit-conversions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ its type checking because this turns out to be more efficient).
3131

3232
In 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

3939
is 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

0 commit comments

Comments
 (0)