mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Friend PR: apple/swift-experimental-string-processing#282. Also remove the `-enable-experimental-pairwise-build-block` flag when building regex modules as the feature is already on by default.
14 lines
544 B
Swift
14 lines
544 B
Swift
// RUN: %target-typecheck-verify-swift -enable-bare-slash-regex -enable-experimental-string-processing
|
|
// RUN: %target-typecheck-verify-swift -enable-experimental-string-processing -enable-bare-slash-regex
|
|
// RUN: %target-typecheck-verify-swift -disable-experimental-string-processing -enable-experimental-string-processing -enable-bare-slash-regex
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
|
|
prefix operator / // expected-error {{prefix operator may not contain '/'}}
|
|
|
|
_ = /x/
|
|
_ = #/x/#
|
|
|
|
@available(SwiftStdlib 5.7, *)
|
|
func foo(_ x: Regex<Substring>) {}
|