No parameter and by-name params eta expansion confusion in Scala

前端 未结 0 1552
梦谈多话
梦谈多话 2021-01-13 21:17

I have the following code

def call1 = 4
call1 _

and get the following warning:

Methods without a parameter list and by-na

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