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.
2 parents dcafdf3 + 35d1165 commit ea1d344Copy full SHA for ea1d344
docs/_docs/reference/other-new-features/export.md
@@ -140,6 +140,10 @@ def f: c.T = ...
140
exported `a` cannot be already a member of the object containing the export.
141
This restriction might be lifted in the future.
142
143
+ 1. Export aliases of nullary Java methods (which may be invoked from Scala with or without empty parentheses)
144
+ are nullary methods in Scala and require parentheses in application. By contrast, since member types are
145
+ preserved, an export alias will have a flexible type if that was inferred for the Java method.
146
+
147
<a id="note_class"></a>
148
(\*) **Note:** Unless otherwise stated, the term "class" in this discussion also includes object and trait definitions.
149
0 commit comments