Files
codeql/java/ql/integration-tests/posix-only/kotlin/java-interface-redeclares-tostring/user.kt
Chris Smowton c6f4742f29 Kotlin: extract interface redeclarations of Object methods
Due to a probable compiler bug (?) the redeclaration looks like a fake symbol, leading to Java dispatching against a declaration that Kotlin doesn't believe exists.
2022-10-24 12:45:07 +01:00

2 lines
93 B
Kotlin

fun f(t: Test, cs: CharSequence) = t.toString() + cs.toString() + t.equals(1) + t.hashCode()