mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously we would only enable by default when `parseArgs` was called. However this wouldn't enable it for clients such as LLDB, who provide their own invocation. Switch the default to `true` in the `LangOptions`, and remove some redundant uses of `-enable-experimental-string-processing`. The frontend flag remains, as it may be useful to disable. rdar://107419385 rdar://101765556
8 lines
385 B
Swift
8 lines
385 B
Swift
// RUN: %target-typecheck-verify-swift -disable-implicit-string-processing-module-import -disable-availability-checking
|
|
// REQUIRES: swift_in_compiler
|
|
|
|
// expected-error @+1 {{missing 'Regex' declaration, probably because the '_StringProcessing' module was not imported properly}}
|
|
let r0 = #/./#
|
|
// expected-error @+1 {{cannot find type 'Regex' in scope}}
|
|
let _: Regex<Substring> = r0
|