[FIR2IR] Fix applying of equals intrinsics

This commit is contained in:
Ivan Kochurkin
2021-10-13 17:35:30 +03:00
committed by TeamCityServer
parent 31507e7e7e
commit 15d23f2a72
11 changed files with 60 additions and 249 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun equals3(a: Char?, b: Char?) = a != null && b != null && a == b
fun equals4(a: Char?, b: Char?) = if (a is Char && b is Char) a == b else null!!