Emil Kantis
12/09/2022, 2:45 PMobject ColorEncoder : Encoder<Color> by { Encoder { appendable, t -> appendable.appendColor(t) }}()
But inlining the lambda body to this doesnt:
object ColorEncoder : Encoder<Color> by Encoder { appendable, t -> appendable.appendColor(t) }
(I get that we can use a val instead, but would like to use objects to keep things consistent)Kroppeb
12/09/2022, 7:58 PMEmil Kantis
12/09/2022, 8:27 PMEmil Kantis
12/09/2022, 8:28 PMEmil Kantis
12/09/2022, 8:29 PMBen Woodworth
12/09/2022, 10:12 PMBen Woodworth
12/09/2022, 10:15 PMclass MySpec : Spec({
// tests
})