You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/changed-features/implicit-resolution.md
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ have only `b` in its implicit search scope but not `a`.
55
55
In more detail, here are the rules for what constitutes the implicit scope of
56
56
a type:
57
57
58
-
**Definition:**A reference is an _anchor_ if it refers to an object, a class, a trait, an abstracttype, or an opaquetypealias. References to packages and packageobjectsareanchorsonlyunder-source:3.0-migration.
58
+
**Definition:**A reference is an _anchor_ if it refers to an object, a class, a trait, an abstracttype, an opaquetypealias, or a matchtypealias. References to packages and packageobjectsareanchorsonlyunder-source:3.0-migration.
59
59
60
60
**Definition:**The _anchors_ of a type_T_ is a set of references defined asfollows:
61
61
@@ -76,9 +76,8 @@ a type:
76
76
-If _T_ is a reference to an opaquetypealias named _A_, _S_ includes
77
77
a reference to an object_A_ defined in the same scope asthetype, if it exists,
78
78
aswellastheimplicit scope of _T_'s underlying typeor bounds.
79
-
-If _T_ is a reference to an an abstracttypenamed _A_, _S_ includes
80
-
a reference to an object_A_ defined in the same scope asthetype, if it exists,
81
-
aswellastheimplicit scopes of _T_'s lower and upper bound.
79
+
-If _T_ is a reference to an an abstracttypeormatchtypealias
80
+
named _A_, _S_ includes a reference to an object_A_ defined in the same scope asthetype, if it exists, aswellastheimplicit scopes of _T_'s lower and upper bound, if present.
82
81
-If _T_ is a reference to an anchor of the form _p.A_then _S_ also includes
83
82
all term references on the path _p_.
84
83
-If _T_ is some other type, _S_ includes the implicit scopes of all anchors of _T_.
0 commit comments