FIR: don't report EQUALITY_NOT_APPLICABLE for classes from java.*
Workaround for KT-48113
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
FILE: IntersectionWithJavaString.kt
|
||||
public final fun collapse(path: R|kotlin/String|): R|kotlin/Unit| {
|
||||
lval result: R|ft<kotlin/String, kotlin/String?>| = (R|<local>/path| as R|java/lang/String|).R|java/lang/String.replace|(String(123), String(456))
|
||||
when () {
|
||||
!==(R|<local>/result|, R|<local>/path|) -> {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// FULL_JDK
|
||||
fun collapse(path: String) {
|
||||
val result = (path as java.lang.String).replace("123", "456")
|
||||
if (<!EQUALITY_NOT_APPLICABLE_WARNING!>result !== path<!>) {}
|
||||
}
|
||||
Reference in New Issue
Block a user