-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hello,I have a data class like that with a in
parameter in primary constructor like this
@Serializable
data class PipeMap(
val `in`: PipeIndex, // input end of the pipe
val out: PipeIndex, // output end of the pipe
// enable pipe proxy from in to out,
// content from in will be discarded if out closes
val proxy: Boolean? = null,
val name: String? = null, // copy out proxy content if proxy enabled
// limit the copy out content size,
// proxy will still functioning after max
val max: Int? = null
)
and Kopykat generate code like this
public inline fun PipeMap.copyMap(
`in`: PipeMap.(PipeIndex) -> PipeIndex = { it },
`out`: PipeMap.(PipeIndex) -> PipeIndex = { it },
proxy: PipeMap.(Boolean?) -> Boolean? = { it },
name: PipeMap.(String?) -> String? = { it },
max: PipeMap.(Int?) -> Int? = { it },
): PipeMap = copy(in = in(this, this.in), out = out(this, this.out), proxy = proxy(this,
this.proxy), name = name(this, this.name), max = max(this, this.max))
yes, in the copy function the 'in' parameter lacks the required ``
Metadata
Metadata
Assignees
Labels
No labels