Report "use of non-const Kotlin property" also on Java case labels

#KT-25536 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-11-23 14:59:20 +03:00
parent 23c43cd124
commit 651faa4ab2
4 changed files with 58 additions and 27 deletions
@@ -9,5 +9,16 @@ public class JavaUser {
// Safe
@Ann(s = KotlinPropertiesKt.constantString)
public void baz() {}
public void baz(String z) {
switch (z) {
case KotlinPropertiesKt.constantString: // Safe
break;
case KotlinPropertiesKt.importantString: // Dangerous
break;
default:
break;
}
}
}