We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5412419 commit 929836dCopy full SHA for 929836d
test/Unsafe/safe.swift
@@ -140,7 +140,7 @@ func testKeyPath() {
140
func takesAutoclosure<T>(_ body: @autoclosure () -> T) { }
141
142
func testAutoclosure() {
143
- // expected-warning@+1{{expression uses unsafe constructs but is not marked with 'unsafe'}}{{20-20=unsafe }}
+ // expected-warning@+1{{expression uses unsafe constructs but is not marked with 'unsafe'}}{{3-3=unsafe }}
144
takesAutoclosure(unsafeFunction()) // expected-note{{reference to unsafe global function 'unsafeFunction()'}}
145
146
unsafe takesAutoclosure(unsafeFunction())
0 commit comments