Add "Throwable not thrown" Inspection

#KT-11629 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-01-21 18:25:08 +09:00
committed by Mikhail Glukhikh
parent e0aeb8f7ec
commit 20aa8ebdb0
28 changed files with 412 additions and 0 deletions
@@ -0,0 +1,9 @@
// PROBLEM: none
class FooException : RuntimeException()
class BarException : RuntimeException()
fun test(i: Int?): RuntimeException {
val x = i ?: return <caret>FooException()
return BarException()
}