Does throw expression have a result type in Scala?
Explanation
Although it may seem somewhat paradoxical, in Scala, throw is an expression that has a result type. Technically, an exception throw has type Nothing.
Source: Exception handling with try expressions

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Scala
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести