JVM_IR KT-36646 fuze primitive equality with safe call

This commit is contained in:
Dmitry Petrov
2021-04-26 11:58:51 +03:00
committed by TeamCityServer
parent 72849a3dc3
commit b34e2c1474
3 changed files with 120 additions and 14 deletions
@@ -1,7 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM_IR
// TODO KT-36646 Don't box primitive values in equality comparison with nullable primitive values in JVM_IR
fun Long.id() = this
fun String.drop2() = if (length >= 2) subSequence(2, length) else null