Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
interfaces
/
noAnyMethodsOnInterfaceInheritance.kt
blob: 40fbc9e57546aa8a238ff4e47eb2121fea58d156 [
file
]
// If we generate equals/hashCode/toString in all interfaces, there will be too much bytecode
interface
A
{
fun foo
():
Number
=
42
}
interface
B
:
A
class
C
:
B
{
override
fun foo
():
Int
=
super
.
foo
()
as
Int
}
// 0 equals
// 0 hashCode
// 0 toString