Fix compilation problems caused by migration to 2.0

This commit is contained in:
Dmitriy Novozhilov
2023-10-10 14:30:40 +03:00
committed by Space Team
parent a35f2eb90e
commit 6114e4f068
3 changed files with 7 additions and 5 deletions
@@ -131,6 +131,7 @@ public class PrettyPrinter(public val indentSize: Int = 2) : Appendable {
}
public inline fun checkIfPrinted(render: () -> Unit): Boolean {
contract { callsInPlace(render, InvocationKind.EXACTLY_ONCE) }
val initialSize = builder.length
render()
return initialSize != builder.length