Skip to content

Commit 6e68045

Browse files
authored
Merge pull request #13666 from dotty-staging/clarify-opaque-iscope
Clarify implicit scope of opaque type aliases
2 parents e06f9a7 + 18eb5f9 commit 6e68045

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/docs/reference/changed-features/implicit-resolution.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ In more detail, here are the rules for what constitutes the implicit scope of
6060
a type:
6161

6262
**Definition:** A reference is an _anchor_ if it refers to an object, a class, a trait, an abstract type, an opaque type alias, or a match type alias. References to packages and package objects are anchors only under `-source:3.0-migration`.
63+
Opaque type aliases count as anchors only outside the scope where their alias is visible.
6364

6465
**Definition:** The _anchors_ of a type _T_ is a set of references defined as follows:
6566

0 commit comments

Comments
 (0)