mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
These are tests that fail in the next commit without this flag. This does not add -verify-ignore-unrelated to all tests with -verify, only the ones that would fail without it. This is NFC since this flag is currently a no-op.
14 lines
353 B
Swift
14 lines
353 B
Swift
// RUN: %target-typecheck-verify-swift -verify-ignore-unrelated -enable-bare-slash-regex -disable-availability-checking
|
|
|
|
import RegexBuilder
|
|
|
|
extension Regex where Output == Substring {
|
|
init(_ x: String) {}
|
|
}
|
|
|
|
func foo() {
|
|
_ = Regex {
|
|
0 // expected-error {{static method 'buildExpression' requires that 'Int' conform to 'RegexComponent'}}
|
|
}
|
|
}
|