Handle nullable case in '==' with smart cast using safe call
This commit is contained in:
Vendored
+2
-1
@@ -1,3 +1,4 @@
|
||||
fun testDD(x: Double?, y: Double?) = x == y
|
||||
fun testDF(x: Double?, y: Any?) = y is Float? && x == y
|
||||
fun testDI(x: Double?, y: Any?) = y is Int? && x == y
|
||||
fun testDI(x: Double?, y: Any?) = y is Int? && x == y
|
||||
fun testDI2(x: Any?, y: Any?) = x is Int? && y is Double && x == y
|
||||
Reference in New Issue
Block a user