Files
swift-mirror/test/decl/protocol/conforms/objc_renamed.swift
Henrik G. Olsson cbc0ec3b88 Add -verify-ignore-unrelated where necessary (NFC)
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.
2025-10-04 14:19:52 -07:00

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)
}
}