Does throw expression have a result type in Scala?
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
Зарегистрируйся сейчас
или Подпишись на будущие тесты