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/other-new-features/export.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,15 @@ def f: c.T = ...
100
100
101
101
1. Export clauses can appear in classes or they can appear at the top-level. An export clause cannot appear as a statement in a block.
102
102
1. If an export clause contains a wildcard or given selector, it is forbidden for its qualifier path to refer to a package. This is because it is not yet known how to safely track wildcard dependencies to a package for the purposes of incremental compilation.
103
+
1. An export renaming hides un-renamed exports matching the target name. For instance, the following
104
+
clause would be invalid since `B` is hidden by the renaming `A as B`.
105
+
```scala
106
+
export {AasB, B} // error: B is hidden
107
+
```
108
+
109
+
1. Renamings in an exportclausemusthavepairwisedifferenttargetnames. Forinstance, thefollowingclausewouldbeinvalid:
0 commit comments