Closed laurentthiebaudezm closed 3 weeks ago
This is indeed a bug. Thanks for reporting it
No workarounds available AFAIK.
@laurentthiebaudezm we'd certainly welcome a PR as we might not get to this issue in a while
This was actually simple and I fixed it with this here https://github.com/facebook/ktfmt/commit/dafd1cbb34a049fd8606213f16ea63569f8e3d05
Hi,
I have the following test method, that verifies if a given method - which required a context MyContext - has been called.
Since I upgraded to kotlin 2.0, ktfmt fails on this method:
This is because in my lambda definition I have a context:
if I remove the context in there, there is no more issue.
(but this is not what I want, I need a context in my lambda).
Is there a bug? Any workaround? Thx.