forked from swiftlang/swift
- Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenable-flag.swift
13 lines (9 loc) · 580 Bytes
/
enable-flag.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %target-typecheck-verify-swift -disable-availability-checking -enable-bare-slash-regex -enable-experimental-string-processing
// RUN: %target-typecheck-verify-swift -disable-availability-checking -enable-experimental-string-processing -enable-bare-slash-regex
// RUN: %target-typecheck-verify-swift -disable-availability-checking -disable-experimental-string-processing -enable-experimental-string-processing -enable-bare-slash-regex
// REQUIRES: swift_swift_parser
prefix operator /
_ =/x/
_ =#/x/#
@available(SwiftStdlib 5.7,*)
func foo(_ x:Regex<Substring>){}