Skip to content

Commit 4058407

Browse files
authored
Merge pull request #15110 from harlanhaskins/change-is-inevitable
Add #warning and #error description to Changelog
2 parents cb76f8b + b6ee72f commit 4058407

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ CHANGELOG
2323
Swift 4.2
2424
---------
2525

26+
* [SE-0196][]
27+
28+
Custom compile-time warnings or error messages can be emitted using the
29+
`#warning(_:)` and `#error(_:)` directives.
30+
31+
```swift
32+
#warning("this is incomplete")
33+
34+
#if MY_BUILD_CONFIG && MY_OTHER_BUILD_CONFIG
35+
#error("MY_BUILD_CONFIG and MY_OTHER_BUILD_CONFIG cannot both be set")
36+
#endif
37+
```
38+
2639
* Public classes may now have internal `required` initializers. The rule for
2740
`required` initializers is that they must be available everywhere the class
2841
can be subclassed, but previously we said that `required` initializers on

0 commit comments

Comments
 (0)