Add "Throwable not thrown" Inspection
#KT-11629 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
e0aeb8f7ec
commit
20aa8ebdb0
@@ -0,0 +1,12 @@
|
||||
// PROBLEM: none
|
||||
class FooException : RuntimeException()
|
||||
|
||||
fun createException() = FooException()
|
||||
|
||||
fun test(i: Int) {
|
||||
throw if (i == 1) {
|
||||
<caret>FooException()
|
||||
} else {
|
||||
createException()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user