提交 e795c2c4 编写于 作者: M Mikhael Bogdanov

Generate proper hashCode for fun interface wrappers

  #KT-44875 Fixed
上级 f33cad54
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册