Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b9823c9

Browse files
committedJan 17, 2022
Clarify shadowing of prelude names.
1 parent 7b950c7 commit b9823c9

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)
Please sign in to comment.