3987efa036
This if is a bit inconsistent with the LUB checking approach, so if it doesn't improve performance it's better to remove it.
10 lines
308 B
Kotlin
Vendored
10 lines
308 B
Kotlin
Vendored
// FULL_JDK
|
|
// ISSUE: KT-48113
|
|
// STATUS: On a K2 technical meeting on Mar-27-2023 it was decided to report a warning
|
|
// WITH_EXTENDED_CHECKERS
|
|
|
|
fun collapse(path: String) {
|
|
val result = (path as <!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>java.lang.String<!>).replace("123", "456")
|
|
if (result !== path) {}
|
|
}
|