blob: c042cdcec3a0f87c46075aa878420e8c9c765d0d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
t5426.scala:2: warning: comparing values of types Some[Int] and Int using `==' will always yield false
def f1 = Some(5) == 5
^
t5426.scala:3: warning: comparing values of types Int and Some[Int] using `==' will always yield false
def f2 = 5 == Some(5)
^
t5426.scala:3: warning: Int and Some[Int] are unrelated: they will most likely never compare equal
def f2 = 5 == Some(5)
^
t5426.scala:8: warning: comparing values of types Int and Some[Int] using `==' will always yield false
(x1 == x2)
^
t5426.scala:8: warning: Int and Some[Int] are unrelated: they will most likely never compare equal
(x1 == x2)
^
t5426.scala:9: warning: comparing values of types Some[Int] and Int using `==' will always yield false
(x2 == x1)
^
error: No warnings can be incurred under -Xfatal-warnings.
6 warnings found
one error found
|