You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,I have a data class like that with a in parameter in primary constructor like this
@Serializable
data classPipeMap(
val `in`: PipeIndex, // input end of the pipevalout: PipeIndex, // output end of the pipe// enable pipe proxy from in to out,// content from in will be discarded if out closesvalproxy:Boolean? = null,
valname:String? = null, // copy out proxy content if proxy enabled// limit the copy out content size,// proxy will still functioning after maxvalmax:Int? = null
)
and Kopykat generate code like this
publicinlinefun 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 ``
The text was updated successfully, but these errors were encountered:
Hello,I have a data class like that with a
in
parameter in primary constructor like thisand Kopykat generate code like this
yes, in the copy function the 'in' parameter lacks the required ``
The text was updated successfully, but these errors were encountered: