You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/contextual/import-delegate.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ object B {
18
18
In the code above, the `import A._` clause of object `B` will import all members
19
19
of `A`_except_ the given instance `tc`. Conversely, the second import `import given A._` will import _only_ that given instance.
20
20
21
-
Generally, a normal import clause brings all definitions except given instances into scope whereas a `given` import brings only given instances into scope.
21
+
Generally, a normal import clause brings definitions other than given instances into scope whereas a `given` import brings only given instances into scope.
22
22
23
23
There are two main benefits arising from these rules:
24
24
@@ -62,7 +62,7 @@ would import `im`, `intOrd`, and `listOrd` but leave out `ec`. By-type imports c
62
62
63
63
The rules for imports given above have the consequence that a library
64
64
would have to migrate in lockstep with all its users from old style implicits and
65
-
normal imports to given definitions and imports.
65
+
normal imports to given instances and imports.
66
66
67
67
The following modifications avoid this hurdle to migration.
0 commit comments