Scala: Nothing and throw expression

前端 未结 0 802
耶瑟儿~
耶瑟儿~ 2020-12-12 17:09

scala.Nothing is a type with no value of this type.

In scala a \'throw\' expression has type Nothing, and also an expression evaluates to a value.

Don\'t these

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