fun bar(x: Int): RuntimeException = RuntimeException(x.toString()) fun foo() { val x: Int? = null if (x == null) throw bar(x) throw bar(x) throw bar(x) }