polymorphic lambda function not allowed

后端 未结 0 1833
孤城傲影
孤城傲影 2021-01-26 01:02

I can\'t understandy, why this code is breaking. The both methods differ in input parameters.

  object foo {
    def x: String => String = x => x
    def x:         


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