Skip to content

Commit f2bb231

Browse files
authored
Merge pull request #4354 from dotty-staging/add-overview-4
Mention implicit conversion restrictions in overview
2 parents ef4a81d + 8c96826 commit f2bb231

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/docs/reference/overview.md

+8
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ Listed in this section are new language constructs that help precise, typechecke
6969
So what should conceptually be a type error would not be reported and
7070
runtime behavior might change instead. Multiversal equality closes that loophole.
7171

72+
- Restrict Implicit Conversions
73+
74+
([Pending](https://github.com/lampepfl/dotty/pull/4229))
75+
Implicit conversions are very easily mis-used, which makes them the cause of much suprising behavior.
76+
We now require a language feature import not only when an implicit conversion is defined
77+
but also when it is applied. This protects users of libraries that define implicit conversions
78+
from being bitten by unanticipated feature interactions.
79+
7280
- Null safety
7381

7482
(Planned) Adding a `null` value to every type has been called a "Billion Dollar Mistake"

0 commit comments

Comments
 (0)