Replace hashCode usages in tests where it was supposed to fail on nullable receiver
Related to #KT-25039
This commit is contained in:
Vendored
+3
-1
@@ -1 +1,3 @@
|
||||
class B : A()
|
||||
class B : A()
|
||||
|
||||
fun Any.string() = this as String
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
fun useA() {
|
||||
getA().x.hashCode()
|
||||
getA().x.string()
|
||||
}
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
fun useA() {
|
||||
getA().x?.hashCode()
|
||||
getA().x?.string()
|
||||
}
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
fun useB() {
|
||||
getB().x.hashCode()
|
||||
getB().x.string()
|
||||
}
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
fun useB() {
|
||||
getB().x?.hashCode()
|
||||
getB().x?.string()
|
||||
}
|
||||
Reference in New Issue
Block a user