Do I need a trailing semicolon to disambiguate this code?

前端 未结 3 1972
攒了一身酷
攒了一身酷 2021-01-20 09:52

If I omit the semicolon, this code doesn\'t compile.

def checkRadioButton(xml: DslBuilder): String => XmlTree = {
    val inputs = top(xml).\\\\*(hasLocal         


        
3条回答
  •  深忆病人
    2021-01-20 10:44

    Just add a second newline, which apparently is equivalent to the semicolon.

    Still, I'm not entirely happy with this, as it seems fragile.

提交回复
热议问题