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.
1 parent a16c9f7 commit 11976c5Copy full SHA for 11976c5
userdocs/diagnostics/embedded-restrictions.md
@@ -48,6 +48,11 @@ Diagnostics in the `EmbeddedRestrictions` group describe those language features
48
value.doSomething(on: i) // warning: cannot use generic instance method 'doSomething(on:)' on a value of type 'any P' in Embedded Swift
49
}
50
51
+* Use of untyped throws, which depends on `any Error` and is not available in Embedded Swift. Use typed throws instead:
52
+
53
+ func mayFail() throws { } // error: untyped throws is not available in Embedded Swift; add a thrown error type with '(type)'
54
+ func mayFail() throws(MyError) // okay
55
56
## See Also
57
58
- [A Vision for Embedded Swift](https://github.com/swiftlang/swift-evolution/blob/main/visions/embedded-swift.md)
0 commit comments