FIR: support CONDITION_TYPE_MISMATCH diagnostic
We report CONDITION_TYPE_MISMATCH on - loop conditions - when branch conditions - binary logic arguments
This commit is contained in:
Vendored
+1
-1
@@ -12,7 +12,7 @@ fun isString(x: Any?): Boolean {
|
||||
}
|
||||
|
||||
fun incorrectPartDoesntMatter(x: Any?) {
|
||||
if (isString(x) && 1) {
|
||||
if (isString(x) && <!CONDITION_TYPE_MISMATCH!>1<!>) {
|
||||
x.length
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user