Skip to content

Commit 71376f9

Browse files
authored
Avoid Kotlin compiler bug (#110)
1 parent f518b08 commit 71376f9

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

protokt-runtime/src/main/kotlin/com/toasttab/protokt/rt/UnknownFieldSet.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private constructor(
9090
write(Tag((fieldNumber shl 3) or wireType))
9191

9292
override fun equals(other: Any?) =
93-
equalsUsingSequence(other, Field::size, Field::asSequence)
93+
equalsUsingSequence(other, { it.size }, Field::asSequence)
9494

9595
override fun hashCode() =
9696
hashCodeUsingSequence(asSequence())
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)