File: t5426.check

package info (click to toggle)
scala 2.11.12-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 62,924 kB
  • sloc: javascript: 28,808; java: 13,415; xml: 3,135; sh: 1,620; python: 756; makefile: 38; awk: 36; ansic: 6
file content (15 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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:8: warning: comparing values of types Int and Some[Int] using `==' will always yield false
  (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.
four warnings found
one error found