[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// See also KT-10992: we should have no errors for all unsafe hashCode() calls
|
||||
|
||||
fun foo(arg: Any?) {
|
||||
val x = arg as? Any ?: return
|
||||
arg.<!INAPPLICABLE_CANDIDATE!>hashCode<!>()
|
||||
x.hashCode()
|
||||
}
|
||||
|
||||
fun bar(arg: Any?) {
|
||||
arg as? Any ?: return
|
||||
arg.<!INAPPLICABLE_CANDIDATE!>hashCode<!>()
|
||||
}
|
||||
|
||||
fun gav(arg: Any?) {
|
||||
arg as? String ?: return
|
||||
arg.<!UNRESOLVED_REFERENCE!>length<!>
|
||||
}
|
||||
Reference in New Issue
Block a user