We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fcc35d2 + 1206dad commit df6232bCopy full SHA for df6232b
docs/docs/reference/changed/implicit-resolution.md
@@ -72,5 +72,13 @@ affect implicits on the language level.
72
most (but not all) divergence errors in Scala 2 would terminate the implicit
73
search as a whole.
74
75
+ 5. Scala-2 gives a lower level of priority to implicit conversions with call-by-name
76
+ parameters relative to implicit conversions with call-by-value parameters. Dotty
77
+ drops this distinction. So the following code snippet would be ambiguous in Dotty:
78
+
79
+ implicit def conv1(x: Int): A = new A(x)
80
+ implicit def conv2(x: => Int): A = new A(x)
81
+ def buzz(y: A) = ???
82
+ buzz(1) // error: ambiguous
83
84
[//]: # todo: expand with precise rules
0 commit comments