Skip to content

Commit

Permalink
fix: breaking change of DataStructValue constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
lanarimarco committed Dec 19, 2024
1 parent 4f05bcc commit db36aca
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@ fun Type.blank(): Value {
data class DataStructValue(@Contextual val value: StringBuilder, private val optionalExternalLen: Int? = null) : Value {

constructor(value: String) : this(StringBuilder(value))
constructor(value: String, len: Int) : this(StringBuilder(value), len)

// We can't serialize a class with a var computed from another one because of a bug in the serialization plugin
// See https://github.com/Kotlin/kotlinx.serialization/issues/133
Expand Down

0 comments on commit db36aca

Please sign in to comment.