Skip to content

Commit 6080a40

Browse files
committed
[TypeChecker] NFC: Run Constraints/dynamic_lookup.swift on all supported platforms
Resolves: rdar://64425653
1 parent a049fc0 commit 6080a40

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/Constraints/dynamic_lookup.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
// REQUIRES: objc_interop
77

8-
// FIXME(rdar://64425653): We should re-enable this test for other platforms.
9-
// REQUIRES: OS=macosx
10-
118
import Foundation
129
import PrivateObjC
1310

@@ -342,8 +339,10 @@ func testOverloadedWithUnavailable(ao: AnyObject) {
342339
}
343340

344341
func dynamicInitCrash(ao: AnyObject.Type) {
342+
// This is going to produce difference results on macOS/iOS due to
343+
// different availability of `init(...)` overloads attached to `AnyObject`
345344
let sdk = ao.init(blahblah: ())
346-
// expected-error@-1 {{no exact matches in call to initializer}}
345+
// expected-error@-1 {{}}
347346
}
348347

349348
// Test that we correctly diagnose ambiguity for different typed members available

0 commit comments

Comments
 (0)