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
12 lines
473 B
Swift
12 lines
473 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/ShadowsStringProcessing.swiftmodule -module-name ShadowsStringProcessing %S/Inputs/ShadowsStringProcessing.swift -disable-availability-checking
|
|
// RUN: %target-typecheck-verify-swift -I %t -disable-availability-checking
|
|
|
|
import ShadowsStringProcessing
|
|
|
|
func f(_ t : Regex<Substring>) -> Bool {
|
|
return t.someProperty == "123"
|
|
}
|
|
|
|
func g(_: _StringProcessing.Regex<Substring>) {}
|