Fix compilation problems caused by migration to 2.0
This commit is contained in:
committed by
Space Team
parent
a35f2eb90e
commit
6114e4f068
+1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user