Skip to content

Commit 80b165c

Browse files
committed
Change the rules for constructor proxy shadowing in reference docs
1 parent 36db085 commit 80b165c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/_docs/reference/other-new-features/creator-applications.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@ be selected with `apply` (or be applied to arguments, in which case the `apply`
4747
inserted).
4848

4949
Constructor proxies are also not allowed to shadow normal definitions. That is,
50-
if an identifier resolves to a constructor proxy, and the same identifier is also
51-
defined or imported in some other scope, an ambiguity is reported.
50+
an ambiguity is reported, if
51+
52+
- an identifier resolves to a constructor proxy,
53+
- the same identifier is also defined or imported in some other scope,
54+
- the other reference can be applied to a (possibly empty) parameter list. That
55+
is, it refers either to a method or to a value containing an apply method as member.
5256

5357
## Motivation
5458

0 commit comments

Comments
 (0)