Generate proper hashCode for fun interface wrappers

#KT-44875 Fixed
This commit is contained in:
Mikhael Bogdanov
2021-02-12 09:35:06 +01:00
parent f33cad54c5
commit e795c2c407
@@ -332,7 +332,7 @@ class SamEqualsHashCodeMethodsGenerator(
overriddenSymbols = klass.superTypes.mapNotNull {
it.getClass()?.functions?.singleOrNull(::isHashCode)?.symbol
}
val hashCode = builtIns.anyClass.owner.functions.single(::isHashCode).symbol
val hashCode = context.irBuiltIns.functionClass.owner.functions.single(::isHashCode).symbol
body = context.createIrBuilder(symbol).run {
irExprBody(
irCall(hashCode).also {