This simple code that I use for builders all over ...
# k2-adopters
a
This simple code that I use for builders all over my codebase no longer compiles in 2.0.0, is this a bug or intentional? It worked fine in all previous versions of kotlin I used. https://pl.kotl.in/3gf3t3qo1
e
Maybe some kind of conflict with kotlin contracts? Changing the name of the function works.
a
Interesting, I have other places in my code that are failing with the name month, but that doesn't fail in this example.. I guess I'll need a more elaborate example to reproduce that one. At any rate, this seems like a compiler bug
this@apply.contract
also fixes it but shouldn't be neccesary
Actually, my month build errors are nested under a contract so it may be the same bug after all
somehow calling contractA before hand fixes it too.. but if you comment out the line calling contractA, it breaks