Skip to content

Commit 71f87ff

Browse files
committed
Clarify shadowing of prelude names.
1 parent 70b9149 commit 71f87ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/names/scopes.md

+3
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ References to a label refer to the closest definition.
232232
## Prelude scopes
233233

234234
[Preludes] bring entities into scope of every module.
235+
The entities are not members of the module, but are implicitly queried during [name resolution].
236+
The prelude names may be shadowed by declarations in a module.
237+
235238
The preludes are layered such that one shadows another if they contain entities of the same name.
236239
The order that preludes may shadow other preludes is the following where earlier entries may shadow later ones:
237240

0 commit comments

Comments
 (0)