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/src/md/kotlin.core/overload-resolution.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Implicit receivers are available in a syntactic scope according to the following
25
25
- In a [classifier declaration][Classifier declaration] scope (including object and companion object declarations), the declared object is available as implicit `this`;
26
26
- In a [classifier declaration][Classifier declaration] scope (including object and companion object declarations), the static callables of the declared object are available on a phantom static implicit `this`;
27
27
- If a function or a property is an extension, `this` parameter of the extension is also available inside the extension declaration;
28
-
- If a function or a property is [contextual][Contextual function declarations], its context receiver parameters are available inside the declaration as implicit receivers;
28
+
- If a function or a property is [contextual][Contextual function declaration], its context receiver parameters are available inside the declaration as implicit receivers;
29
29
- If a lambda expression has an extension function type, `this` argument of the lambda expression is also available inside the lambda expression declaration.
30
30
31
31
> Important: a phantom static implicit `this` is a special receiver, which is included in the receiver chain for the purposes of handling static functions from [enum classes][Enum class declaration].
@@ -148,7 +148,7 @@ An *extension callable* is one of the following:
148
148
149
149
A*local callable*is any callable which is declared in a [statement scope][Scopesand identifiers].
150
150
151
-
### Contextual callables
151
+
####Contextual callables
152
152
153
153
A_contextual callable_ is any callable with one or more context receiver parameters.
154
154
@@ -467,7 +467,7 @@ For every two distinct members of the candidate set $F_1$ and $F_2$, the followi
467
467
> Note: this constraint system checks whether $F_1$ can forward itself to $F_2$.
468
468
469
469
> Note: it may seem strange to process built-in integer types in a way different from other types, but it is needed for cases when the call argument is an integer literal with an [integer literal type][Integer literal types].
470
-
> The $\Widen$ operator ensures the desired priority between overloads with integer type arguments.
470
+
> The $\Widen$ operator ensures the [desired priority][Integer type widening] between overloads with integer type arguments.
471
471
472
472
If the resulting constraint system is sound, it means that $F_1$ is equally or more applicable than $F_2$ as an overload candidate (aka applicability criteria).
473
473
The check is then repeated with $F_1$ and $F_2$ swapped.
0 commit comments