mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Treat _StringProcessing decls as if it were declared in the Swift module, just like how _Concurrency is treated (#34642).
12 lines
512 B
Swift
12 lines
512 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 -enable-experimental-string-processing -disable-availability-checking
|
|
|
|
import ShadowsStringProcessing
|
|
|
|
func f(_ t : Regex<Substring>) -> Bool {
|
|
return t.someProperty == "123"
|
|
}
|
|
|
|
func g(_: _StringProcessing.Regex<Substring>) {}
|