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 5be1360 commit 2808b1bCopy full SHA for 2808b1b
library/src/scala/Eq.scala
@@ -55,4 +55,7 @@ object Eq extends Eq[Any, Any] {
55
implicit def eqNumFloat : Eq[Number, Float] = Eq
56
implicit def eqDoubleNum: Eq[Double, Number] = Eq
57
implicit def eqNumDouble: Eq[Number, Double] = Eq
58
-}
+
59
+ implicit def eqSBoolJBool: Eq[Boolean, java.lang.Boolean] = Eq
60
+ implicit def eqJBoolSBool: Eq[java.lang.Boolean, Boolean] = Eq
61
+}
tests/pos/i4180.scala
@@ -0,0 +1,6 @@
1
+object Test {
2
+ def foo(s: Boolean, j: java.lang.Boolean) = {
3
+ val a = s == j
4
+ val b = j == s
5
+ }
6
0 commit comments