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 {
6969
7070
7171 println(" x.hashCode: " + x.hashCode)
72- println(" x == 1: " + (x == 1 ))
72+ println(" x == 1: " + (( x : Any ) == 1 ))
7373 println(" x == y: " + (x == y))
7474 assert(x.hashCode == (1.0 ).hashCode)
7575
Original file line number Diff line number Diff line change 22object Test {
33 != (1 )
44 != (" abc" )
5- 1 != this
5+ 1 != ( this : Any )
66 != (this )
77}
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ object Test extends TestTrait {
112112 case _ : ExceptionTrait => println(" ExceptionTrait" )
113113 case e : IOException if e.getMessage == null => println(" IOException" )
114114 case _ : NullPointerException | _:IOException => println(" NullPointerException | IOException" )
115- case `a` => println(" `a`" )
115+ // case `a` => println("`a`")
116116 case EX => println(" EX" )
117117 case e : IllegalArgumentException => println(" IllegalArgumentException" )
118118 case _ : ClassCastException => println(" ClassCastException" )
You can’t perform that action at this time.
0 commit comments