If you generate for null_writable alone, you get as result
[...]
external interface `T$0` {
var chunk: Any
var encoding: String
}
@JsName("default")
external open class NullWritable : Writable {
open fun _write(_chunk: Any, _encoding: String, callback: (error: Error?) -> Unit)
open fun _writev(_chunks: Array<`T$0`>, callback: (error: Error?) -> Unit)
}
[...]
import stream.internal.`T$16`
import stream.internal.Writable
external interface `T$73` {
var chunk: Any
var encoding: String
}
@JsName("default")
external open class NullWritable : Writable {
override fun _write(_chunk: Any, _encoding: String, callback: (error: Error?) -> Unit)
open fun _writev(_chunks: Array<`T$73`>, callback: (error: Error?) -> Unit)
override fun _writev(chunks: Array<`T$16`>, callback: (error: Error?) -> Unit)
}
This does not compile as `T$16` cannot be found and thus the third function does not override anything.
As a work-around I replace `T$16` by the expected `T$10`.
At least the naming seems to be stable, so that the numbers do not change if dependencies do not change.
If you generate for
null_writable
alone, you get as resultIf you generate in combination used at https://github.com/Vampire/setup-wsl, this is generated,
[...]
being the same in both cases:This does not compile as
`T$16`
cannot be found and thus the third function does not override anything. As a work-around I replace`T$16`
by the expected`T$10`
. At least the naming seems to be stable, so that the numbers do not change if dependencies do not change.