Why isn't this `when` expression considered exhaus...
# announcements
b
Why isn't this
when
expression considered exhaustive (i.e., compiler gives me an error about missing 'else' branch)?
Copy code
when (calculated) {
	is Exception -> throw ToolException(calculated as Exception?)
	is String -> throw ToolException(calculated as String?)
	!is File -> throw ToolException("Calculated object not an instance of File?!")
}