Skip to content

Commit a7e8eb4

Browse files
committed
Previous fix was actually for rdar://19478919, correct the testcase.
1 parent 568ed04 commit a7e8eb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Parse/pointer_conversion.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ func addressConversion(p: UnsafeMutablePointer<Int>, x: Int) {
216216
let _: Bool = p == &x
217217
}
218218

219-
// <rdar://problem/23271868> QoI: Non-descriptive error message in Swift when passing immutable unsafe pointer instead of mutable
220-
func f23271868() {
219+
// <rdar://problem/19478919> QoI: poor error: '&' used with non-inout argument of type 'UnsafeMutablePointer<Int32>'
220+
func f19478919() {
221221
var viewport: Int = 1 // intentionally incorrect type, not Int32
222222
func GLKProject(a : UnsafeMutablePointer<Int32>) {}
223223
GLKProject(&viewport) // expected-error {{cannot convert value of type 'Int' to expected argument type 'Int32'}}

0 commit comments

Comments
 (0)