mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Typed captures no longer use ad-hoc nominal tuples. We use Swift native tuples instead. See apple/swift-experimental-string-processing#127. Update checkout tag to dev/6.
12 lines
351 B
Swift
12 lines
351 B
Swift
// RUN: %target-typecheck-verify-swift -enable-experimental-string-processing
|
|
// REQUIRES: swift_in_compiler
|
|
|
|
_ = '/abc/'
|
|
|
|
_ = ('/[*/', '/+]/', '/.]/')
|
|
// expected-error@-1 {{cannot parse regular expression: quantifier '+' must appear after expression}}
|
|
// expected-error@-2 {{cannot parse regular expression: expected ']'}}
|
|
|
|
_ = '/\w+/'
|
|
_ = '/\'\\/'
|