Skip to content

Commit 316fa61

Browse files
committed
Minor tweaks in property overload resolution
1 parent 8c5d3b1 commit 316fa61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/md/kotlin.core/overload-resolution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,8 @@ Informally, access to a property is resolved as if it is a callable invocation c
672672
673673
The overload resolution for properties has the following features distinct from overload resolution for callables.
674674
675-
* Properties without getter or setter are assumed to have default implementations for accessors;
676-
* The overload resolution takes into account the kind of property (e.g., an extension read-only property is considered to have an extension getter, a contextual mutable property is considered to have a contextual getter and setter, etc.);
675+
* Properties without getter or setter are assumed to have default implementations for accessors (ones which get or set its [backing field][Getters and setters]);
676+
* The overload resolution takes into account the kind of property, meaning an extension read-only property is considered to have an extension getter, a contextual mutable property is considered to have a contextual getter and setter, etc.;
677677
* When building the overload candidate set, only candidates which are property getters and setters are considered;
678678
> Note: this means `invoke` operator convention cannot take part in _property_ overload resolution.
679679

0 commit comments

Comments
 (0)