File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %target-run-simple-swift
2
2
// REQUIRES: executable_test
3
- // REQUIRES: rdar27381049
4
3
5
4
// XFAIL: interpret
6
5
@@ -1127,18 +1126,18 @@ StringTests.test("indexConversion")
1127
1126
. skip ( . nativeRuntime( " Foundation dependency " ) )
1128
1127
. code {
1129
1128
#if _runtime(_ObjC)
1130
- let re : RegularExpression
1129
+ let re : NSRegularExpression
1131
1130
do {
1132
- re = try RegularExpression (
1133
- pattern: " ([^ ]+)er " , options: RegularExpression . Options ( ) )
1131
+ re = try NSRegularExpression (
1132
+ pattern: " ([^ ]+)er " , options: NSRegularExpression . Options ( ) )
1134
1133
} catch { fatalError ( " couldn't build regexp: \( error) " ) }
1135
1134
1136
1135
let s = " go further into the larder to barter. "
1137
1136
1138
1137
var matches : [ String ] = [ ]
1139
1138
1140
1139
re. enumerateMatches (
1141
- in: s, options: RegularExpression . MatchingOptions ( ) , range: NSRange ( 0 ..< s. utf16. count)
1140
+ in: s, options: NSRegularExpression . MatchingOptions ( ) , range: NSRange ( 0 ..< s. utf16. count)
1142
1141
) {
1143
1142
result, flags, stop
1144
1143
in
You can’t perform that action at this time.
0 commit comments