Skip to content

Commit

Permalink
Merge pull request #688 from smeup/bugfix/ds_contructor_broken
Browse files Browse the repository at this point in the history
fix: breaking change of DataStructValue constructor
  • Loading branch information
lanarimarco authored Dec 19, 2024
2 parents 4f05bcc + db36aca commit 106fcbf
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 106fcbf

Please sign in to comment.