case class equality with Map in scala yields unexpected result why?

前端 未结 0 1388
陌清茗
陌清茗 2021-01-20 14:38

I have the following code please go through it

case class emp (name: String, age: Int)

val e1 = emp("",2)
val e2 = emp("",2)

e1 == e2 //         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题