mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +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.
16 lines
415 B
Swift
16 lines
415 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -verify-ignore-unrelated %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
extension NSCouldConformToIndexable: @retroactive NSIndexable {
|
|
}
|
|
|
|
extension NSCouldConformToIndexable {
|
|
func testIndex(_ i: Int) {
|
|
_ = objectAtIndex(i) // expected-error {{'objectAtIndex' has been renamed to 'object(at:)'}}
|
|
_ = object(at: i)
|
|
}
|
|
}
|