Files
kotlin-fork/idea/testData/intentions/addThrowsAnnotation/if_ni.kt.after
T
Mikhail Zarechenskiy a6e58edfb9 Update test data, unmute test
Now behavior is the same as in OI for these cases.
 The behavior was changed in 100a6f70ca
2020-07-17 07:47:15 +03:00

7 lines
166 B
Plaintext
Vendored

// COMPILER_ARGUMENTS: -XXLanguage:+NewInference
// WITH_RUNTIME
@Throws(Throwable::class)
fun a(b: Boolean) {
throw if (b) RuntimeException() else Exception()
}