Replace hashCode usages in tests where it was supposed to fail on nullable receiver
Related to #KT-25039
This commit is contained in:
+3
-2
@@ -1,5 +1,6 @@
|
||||
>>> val x: Pair<Any?, Any?> = null to null
|
||||
>>> if (x.first != null) x.first.hashCode()
|
||||
>>> fun Any.string() = this as String
|
||||
>>> if (x.first != null) x.first.string()
|
||||
error: smart cast to 'Any' is impossible, because 'x.first' is a public API property declared in different module
|
||||
if (x.first != null) x.first.hashCode()
|
||||
if (x.first != null) x.first.string()
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user