Closed mgroth0 closed 8 months ago
Hi,
yes, in fact, it was worth adding an @DslMarker
annotation a long time ago.
But could you clarify, having encountered the problem, have you looked at the documentation for the bound
function?
It may also be worth improving the documentation for it somehow.
I did not look at the documentation, no. I was creating a new reproducer project and was already familiar with the kover API so I was going off memory. However, my memory was slightly off. It seem like an easy mistake to make.
Implemented in 0.8.0-Beta2
I have spent a long time being very confused, stepping through debuggers, and creating a reproducer only to find out that I was using the DSL incorrectly. I think it is a design issue, as it is too easy for users to get mixed up.
I was doing this:
And my output kept looking like this:
I was very confused why it kept using lines instead of branches. Finally, I discovered I needed to do this:
And now it works:
I think that the correct solution here is to use the
@DslMarker
annotation on all DSL objects. I mean, create an annotation calledKoverDsl
, annotate that annotation with@DslMarker
, and putKoverDsl
on all kover dsl interfaces.