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.
visible under a simple name
1 parent 739a4af commit 64efaa1Copy full SHA for 64efaa1
docs/docs/reference/contextual/extension-methods.md
@@ -34,11 +34,11 @@ assert(circle.circumference == circumference(circle))
34
35
When is an extension method applicable? There are two possibilities:
36
37
- 1. An extension method is applicable if it is visible, by being defined
+ 1. An extension method is applicable if it is visible under a simple name, by being defined
38
or inherited or imported in a scope enclosing the application.
39
2. An extension method is applicable if it is a member of some given instance at the point of the application.
40
41
-Following an example for the first point:
+Here is an example for the first rule:
42
43
```scala
44
trait IntOps {
0 commit comments