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 1f931f9 commit 5701d50Copy full SHA for 5701d50
test/Constraints/diagnostics.swift
@@ -737,6 +737,11 @@ extension Foo23752537 {
737
}
738
739
740
+// <rdar://problem/27391581> QoI: Nonsensical "binary operator '&&' cannot be applied to two 'Bool' operands"
741
+func rdar27391581(_ a : Int, b : Int) -> Int {
742
+ return a == b && b != 0
743
+ // expected-error @-1 {{cannot convert return expression of type 'Bool' to return type 'Int'}}
744
+}
745
746
// <rdar://problem/22276040> QoI: not great error message with "withUnsafePointer" sametype constraints
747
func read2(_ p: UnsafeMutableRawPointer, maxLength: Int) {}
0 commit comments