I guess nope, since the following works: ```when (...
# announcements
b
I guess nope, since the following works:
Copy code
when (calculated) {
    is Exception -> throw ToolException(calculated as Exception?)
    is String -> throw ToolException(calculated as String?)
    is File -> {}
    else -> throw ToolException("Calculated object not an instance of File?!")
}