Skip to content

Commit 2019496

Browse files
committed
Suppress silly warning in a new test case
(cherry picked from commit b97c7cc)
1 parent e169361 commit 2019496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Constraints/generic_super_constraint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ class IntegerClass : ExpressibleByIntegerLiteral, Equatable {
2424
static func ==(lhs: IntegerClass, rhs: IntegerClass) -> Bool { return true }
2525
}
2626

27-
func foo<T: IntegerClass>(_ num: T) { let x = num != 0 }
27+
func foo<T: IntegerClass>(_ num: T) { let _ = num != 0 }

0 commit comments

Comments
 (0)