Skip to content

Commit

Permalink
Clarify shadowing of prelude names.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jan 17, 2022
1 parent 7b950c7 commit b9823c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/names/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ References to a label refer to the closest definition.
## Prelude scopes

[Preludes] bring entities into scope of every module.
The entities are not members of the module, but are implicitly queried during [name resolution].
The prelude names may be shadowed by declarations in a module.

The preludes are layered such that one shadows another if they contain entities of the same name.
The order that preludes may shadow other preludes is the following where earlier entries may shadow later ones:

Expand Down

0 comments on commit b9823c9

Please sign in to comment.