File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ object Test extends App {
69
69
70
70
71
71
println(" x.hashCode: " + x.hashCode)
72
- println(" x == 1: " + (x == 1 ))
72
+ println(" x == 1: " + (( x : Any ) == 1 ))
73
73
println(" x == y: " + (x == y))
74
74
assert(x.hashCode == (1.0 ).hashCode)
75
75
Original file line number Diff line number Diff line change 2
2
object Test {
3
3
!= (1 )
4
4
!= (" abc" )
5
- 1 != this
5
+ 1 != ( this : Any )
6
6
!= (this )
7
7
}
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ object Test extends TestTrait {
112
112
case _ : ExceptionTrait => println(" ExceptionTrait" )
113
113
case e : IOException if e.getMessage == null => println(" IOException" )
114
114
case _ : NullPointerException | _:IOException => println(" NullPointerException | IOException" )
115
- case `a` => println(" `a`" )
115
+ // case `a` => println("`a`")
116
116
case EX => println(" EX" )
117
117
case e : IllegalArgumentException => println(" IllegalArgumentException" )
118
118
case _ : ClassCastException => println(" ClassCastException" )
You can’t perform that action at this time.
0 commit comments