ReplaceGuardClause inspection: check contracts availability
This commit is contained in:
committed by
Mikhail Glukhikh
parent
8cbcb66197
commit
2ca0056cd0
+11
@@ -0,0 +1,11 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
fun test(foo: Int?) {
|
||||
<caret>if (foo == null) {
|
||||
throw IllegalArgumentException("test")
|
||||
}
|
||||
bar(foo)
|
||||
}
|
||||
|
||||
fun bar(i: Int) {}
|
||||
Reference in New Issue
Block a user