Skip to content

Commit f555154

Browse files
Fixed expected location of note
1 parent ae8150b commit f555154

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/attr/attr_availability_unavailability.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ func testUnavailableExpandAllElsePaths() {
6363
func log(message: String) {}
6464

6565
@available(*, unavailable, renamed: "log(message:)")
66-
func log(format: String, _ args: Any...) { fatalError() }
66+
func log(format: String, _ args: Any...) { fatalError() } // expected-note {{'log(format:_:)' has been explicitly marked unavailable here}}
6767

6868
// Regression test for https://github.com/apple/swift/issues/64694
6969
func testUnavailableRenamedFromVariadicDoesntAssert() {
7070
log(format: "") // expected-error{{'log(format:_:)' has been renamed to 'log(message:)'}}
71-
// expected-note@-1 {{'log(format:_:)' has been explicitly marked unavailable here}}
7271
}

0 commit comments

Comments
 (0)