mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Features] FullTypedThrows should only be enable-able in asserts builds.
The implementation of this experimental feature is not complete and it's not ready to be enabled in production.
This commit is contained in:
@@ -227,7 +227,7 @@ EXPERIMENTAL_FEATURE(FlowSensitiveConcurrencyCaptures, false)
|
||||
EXPERIMENTAL_FEATURE(CodeItemMacros, false)
|
||||
EXPERIMENTAL_FEATURE(PreambleMacros, false)
|
||||
EXPERIMENTAL_FEATURE(TupleConformances, false)
|
||||
EXPERIMENTAL_FEATURE(FullTypedThrows, true)
|
||||
EXPERIMENTAL_FEATURE(FullTypedThrows, false)
|
||||
|
||||
// Whether to enable @_used and @_section attributes
|
||||
EXPERIMENTAL_FEATURE(SymbolLinkageMarkers, true)
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
// RUN: %target-swift-emit-silgen %s -enable-experimental-feature FullTypedThrows | %FileCheck %s
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
public func genericThrow<E>(e: E) throws(E) {
|
||||
throw e
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
// RUN: %target-typecheck-verify-swift -enable-experimental-feature FullTypedThrows
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
enum MyError: Error {
|
||||
case failed
|
||||
case epicFailed
|
||||
|
||||
Reference in New Issue
Block a user