We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb76f8b + b6ee72f commit 4058407Copy full SHA for 4058407
CHANGELOG.md
@@ -23,6 +23,19 @@ CHANGELOG
23
Swift 4.2
24
---------
25
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
39
* Public classes may now have internal `required` initializers. The rule for
40
`required` initializers is that they must be available everywhere the class
41
can be subclassed, but previously we said that `required` initializers on
0 commit comments