Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _overviews/core/implicit-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ While it's possible to create an implicit class with more than one non-implicit
aren't used during implicit lookup.


**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.**

*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`*.

object Bar
implicit class Bar(x: Int) // BAD!
Expand Down