// HIGHLIGHT: GENERIC_ERROR_OR_WARNING fun doSomething() {} fun test() { var res: String? = null res = try { doSomething() "success" } catch (e: Exception) { doSomething() "failure" } }