8000
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 11ae5ce commit 6580fabCopy full SHA for 6580fab
_overviews/core/implicit-classes.md
@@ -80,9 +80,9 @@ While it's possible to create an implicit class with more than one non-implicit
80
aren't used during implicit lookup.
81
82
83
-**3. There may not be any method, member or object in scope with the same name as the implicit class.**
+**3. The `implicit def` introduced by `implicit class` must not be ambiguous with respect to other term members.**
84
85
-*Note: This means an implicit class cannot be a case class*.
+*Note: This means an implicit class cannot be a case class, since the `implicit def` would be ambiguous with the companion `apply`*.
86
87
object Bar
88
implicit class Bar(x: Int) // BAD!
0 commit comments